Commit b5f9f9bd authored by Taylor Otwell's avatar Taylor Otwell

added event firing when bundle is started.

parent 36363216
...@@ -87,6 +87,8 @@ class Bundle { ...@@ -87,6 +87,8 @@ class Bundle {
// start script for reverse routing efficiency purposes. // start script for reverse routing efficiency purposes.
static::routes($bundle); static::routes($bundle);
Event::fire("started: {$bundle}");
static::$started[] = strtolower($bundle); static::$started[] = strtolower($bundle);
} }
......
...@@ -17,6 +17,7 @@ define('MB_STRING', (int) function_exists('mb_get_info')); ...@@ -17,6 +17,7 @@ define('MB_STRING', (int) function_exists('mb_get_info'));
* These are typically classes that the auto-loader relies upon to * These are typically classes that the auto-loader relies upon to
* load classes, such as the array and configuration classes. * load classes, such as the array and configuration classes.
*/ */
require path('sys').'event'.EXT;
require path('sys').'bundle'.EXT; require path('sys').'bundle'.EXT;
require path('sys').'config'.EXT; require path('sys').'config'.EXT;
require path('sys').'helpers'.EXT; require path('sys').'helpers'.EXT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment