prefix built-in events with laravel.
This commit is contained in:
parent
7aa78e1a3c
commit
dd6402c648
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -210,4 +210,4 @@
|
|||
*/
|
||||
$response->send();
|
||||
|
||||
Event::fire('done');
|
||||
Event::fire('laravel.done');
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue