From dd6402c6488b1e341e735e3504c0fe2830df6090 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 16 Feb 2012 16:26:39 -0600 Subject: [PATCH] prefix built-in events with laravel. --- laravel/bundle.php | 2 +- laravel/database/connection.php | 2 +- laravel/laravel.php | 2 +- laravel/view.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/laravel/bundle.php b/laravel/bundle.php index 0336cfb8..529efdbb 100644 --- a/laravel/bundle.php +++ b/laravel/bundle.php @@ -94,7 +94,7 @@ public static function start($bundle) // start script for reverse routing efficiency purposes. static::routes($bundle); - Event::fire("started: {$bundle}"); + Event::fire("laravel.started: {$bundle}"); static::$started[] = strtolower($bundle); } diff --git a/laravel/database/connection.php b/laravel/database/connection.php index 714d4341..f39934ab 100644 --- a/laravel/database/connection.php +++ b/laravel/database/connection.php @@ -240,7 +240,7 @@ protected function execute($sql, $bindings = array()) */ protected function log($sql, $bindings, $time) { - Event::fire('query', array($sql, $bindings, $time)); + Event::fire('laravel.query', array($sql, $bindings, $time)); static::$queries[] = compact('sql', 'bindings', 'time'); } diff --git a/laravel/laravel.php b/laravel/laravel.php index f899335a..b5cec3c5 100644 --- a/laravel/laravel.php +++ b/laravel/laravel.php @@ -210,4 +210,4 @@ */ $response->send(); -Event::fire('done'); \ No newline at end of file +Event::fire('laravel.done'); \ No newline at end of file diff --git a/laravel/view.php b/laravel/view.php index 2b408217..a6ad41e5 100644 --- a/laravel/view.php +++ b/laravel/view.php @@ -188,7 +188,7 @@ public static function name($view, $name) */ public static function composer($view, $composer) { - Event::listen("composing: {$view}", $composer); + Event::listen("laravel.composing: {$view}", $composer); } /** @@ -201,7 +201,7 @@ public function render() // To allow bundles or other pieces of the application to modify the // view before it is rendered, we will fire an event, passing in the // view instance so it can modified by any of the listeners. - Event::fire("composing: {$this->view}", array($this)); + Event::fire("laravel.composing: {$this->view}", array($this)); $data = $this->data();