prefix built-in events with laravel.
This commit is contained in:
@@ -94,7 +94,7 @@ class Bundle {
|
||||
// start script for reverse routing efficiency purposes.
|
||||
static::routes($bundle);
|
||||
|
||||
Event::fire("started: {$bundle}");
|
||||
Event::fire("laravel.started: {$bundle}");
|
||||
|
||||
static::$started[] = strtolower($bundle);
|
||||
}
|
||||
|
||||
@@ -240,7 +240,7 @@ class Connection {
|
||||
*/
|
||||
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');
|
||||
}
|
||||
|
||||
@@ -210,4 +210,4 @@ Cookie::send();
|
||||
*/
|
||||
$response->send();
|
||||
|
||||
Event::fire('done');
|
||||
Event::fire('laravel.done');
|
||||
@@ -188,7 +188,7 @@ class View implements ArrayAccess {
|
||||
*/
|
||||
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 {
|
||||
// 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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user