laravel/framework — pull request #2763 by billmn (2013-11-20 10:50:46+00:00)
Title: Fix missing argument on missingMethod

Using, for example, a Route::controller ... trying to call a method that doesn't exists :

ErrorException
Missing argument 2 for Illuminate\Routing\Controller::missingMethod()

Stack :

[2013-11-20 11:01:16] local.ERROR: exception 'ErrorException' with message 'Missing argument 2 for Illuminate\Routing\Controller::missingMethod()' in /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:210
Stack trace:
#0 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(210): Illuminate\Exception\Handler->handleError(2, 'Missing argumen...', '/Applications/M...', 210, Array)
#1 [internal function]: Illuminate\Routing\Controller->missingMethod('enable')
#2 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(190): call_user_func_array(Array, Array)
#3 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(92): Illuminate\Routing\Controller->callAction('missingMethod', Array)
#4 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(61): Illuminate\Routing\ControllerDispatcher->call(Object(Billmn\Test\Controllers\ApiUsersController), Object(Illuminate\Routing\Route), 'missingMethod')
#5 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Routing/Router.php(887): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'Billmn\Te...', 'missingMethod')
#6 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}('enable')
#7 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Routing/Route.php(118): call_user_func_array(Object(Closure), Array)
#8 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Routing/Router.php(951): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#9 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Routing/Router.php(921): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#10 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(668): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#11 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(650): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request))
#12 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Http/FrameGuard.php(38): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true)
#13 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(58): Illuminate\Http\FrameGuard->handle(Object(Illuminate\Http\Request), 1, true)
#14 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true)
#15 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true)
#16 /Applications/MAMP/htdocs/git/test/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true)
#17 /Applications/MAMP/htdocs/git/test/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(552): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request))
#18 /Applications/MAMP/htdocs/git/test/public/index.php(49): Illuminate\Foundation\Application->run()