Luracast/Restler — pull request #130 by Alexander-Dhoore (2013-04-23 11:00:32+00:00)
Title: Error in example 2

Hello!

I'm working through the examples and there is a problem with example 2, that I fixed with this commit.

Without the fix, my apache log says:

[Tue Apr 23 12:54:18 2013] [error] [client 127.0.0.1] PHP Notice: Undefined offset: 0 in /home/alexander/RestlerFork/Restler/vendor/Luracast/Restler/EventEmitter.php on line 35, referer: http://localhost/Restler/public/examples/_002_minimal/readme.html

The comment above my fix talks about a smart auto loader... but this seems to be the only example that doesn't "use Luracast\Restler\Restler;". So I thought this might be the right fix.

Greets,
Alexander