prefix built-in events with laravel.

This commit is contained in:
Taylor Otwell 2012-02-16 16:26:39 -06:00
parent 7aa78e1a3c
commit dd6402c648
4 changed files with 5 additions and 5 deletions

View File

@ -94,7 +94,7 @@ public static function start($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}"); Event::fire("laravel.started: {$bundle}");
static::$started[] = strtolower($bundle); static::$started[] = strtolower($bundle);
} }

View File

@ -240,7 +240,7 @@ protected function execute($sql, $bindings = array())
*/ */
protected function log($sql, $bindings, $time) 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'); static::$queries[] = compact('sql', 'bindings', 'time');
} }

View File

@ -210,4 +210,4 @@
*/ */
$response->send(); $response->send();
Event::fire('done'); Event::fire('laravel.done');

View File

@ -188,7 +188,7 @@ public static function name($view, $name)
*/ */
public static function composer($view, $composer) 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 // 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 before it is rendered, we will fire an event, passing in the
// view instance so it can modified by any of the listeners. // 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(); $data = $this->data();