Commit dd6402c6 authored by Taylor Otwell's avatar Taylor Otwell

prefix built-in events with laravel.

parent 7aa78e1a
...@@ -94,7 +94,7 @@ class Bundle { ...@@ -94,7 +94,7 @@ 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}"); Event::fire("laravel.started: {$bundle}");
static::$started[] = strtolower($bundle); static::$started[] = strtolower($bundle);
} }
......
...@@ -240,7 +240,7 @@ class Connection { ...@@ -240,7 +240,7 @@ class Connection {
*/ */
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');
} }
......
...@@ -210,4 +210,4 @@ Cookie::send(); ...@@ -210,4 +210,4 @@ Cookie::send();
*/ */
$response->send(); $response->send();
Event::fire('done'); Event::fire('laravel.done');
\ No newline at end of file \ No newline at end of file
...@@ -188,7 +188,7 @@ class View implements ArrayAccess { ...@@ -188,7 +188,7 @@ class View implements ArrayAccess {
*/ */
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 @@ class View implements ArrayAccess { ...@@ -201,7 +201,7 @@ class View implements ArrayAccess {
// 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();
......
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