From b5f9f9bd9a66db04e992fa7a1d6e6b32aba81b11 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 30 Jan 2012 13:18:33 -0600 Subject: [PATCH] added event firing when bundle is started. --- laravel/bundle.php | 2 ++ laravel/core.php | 1 + 2 files changed, 3 insertions(+) diff --git a/laravel/bundle.php b/laravel/bundle.php index f9bb893c..dd0f9e54 100644 --- a/laravel/bundle.php +++ b/laravel/bundle.php @@ -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); } diff --git a/laravel/core.php b/laravel/core.php index c4ecde04..2eabb864 100644 --- a/laravel/core.php +++ b/laravel/core.php @@ -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;