laravel/laravel — pull request #2497 by mdwheele (2013-12-13 16:47:37+00:00)
Title: Artisan Command Registration Change

We register several artisan commands for our application and we were doing so like:
```
add(new CommandOne);
$artisan->add(new CommandTwo);
```

This caused the following exception:
```
[13-Dec-2013 16:38:35 UTC] PHP Fatal error: Call to a member function add() on a non-object in /Applications/MAMP/htdocs/maps/server/app/start/artisan.php on line 14
[13-Dec-2013 16:38:35 UTC] PHP Stack trace:
[13-Dec-2013 16:38:35 UTC] PHP 1. {main}() /Applications/MAMP/htdocs/maps/server/artisan:0
[13-Dec-2013 16:38:35 UTC] PHP 2. Illuminate\Console\Application::start() /Applications/MAMP/htdocs/maps/server/artisan:46
[13-Dec-2013 16:38:35 UTC] PHP 3. Illuminate\Console\Application->boot() /Applications/MAMP/htdocs/maps/server/vendor/laravel/framework/src/Illuminate/Console/Application.php:32
[13-Dec-2013 16:38:35 UTC] PHP 4. require() /Applications/MAMP/htdocs/maps/server/vendor/laravel/framework/src/Illuminate/Console/Application.php:62
[1
```

I changed to the documented API reference and it works fine now!
```