laravel/laravel — pull request #1145 by franzliedke (2012-08-25 23:03:51+00:00)
Title: Mark a bundle as started before firing the event.

It is not possible to execute any code that tries to start the bundle itself in a bundle's start.php. That is because the bundle isn't marked as started until it's start.php has run.

Code that does this is `Command::run()`, for example.

This patch allows to register event listeners for the event that signals that the bundle has started in the start.php file. That way, calling code such as `Command::run()` can be deferred until the bundle has started properly.

The other alternative - and this is where I'd like some input - would be to mark the bundle as started just before the start.php file is included. That makes things even easier. Agreed?