added event firing when bundle is started.

This commit is contained in:
Taylor Otwell 2012-01-30 13:18:33 -06:00
parent 363632165c
commit b5f9f9bd9a
2 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,8 @@ public static function start($bundle)
// start script for reverse routing efficiency purposes.
static::routes($bundle);
Event::fire("started: {$bundle}");
static::$started[] = strtolower($bundle);
}

View File

@ -17,6 +17,7 @@
* These are typically classes that the auto-loader relies upon to
* load classes, such as the array and configuration classes.
*/
require path('sys').'event'.EXT;
require path('sys').'bundle'.EXT;
require path('sys').'config'.EXT;
require path('sys').'helpers'.EXT;