1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 07:54:25 +02:00

fire -> dispatch

As per Illuminate\Contracts\Events\Dispatcher
This commit is contained in:
Toby Zerner
2018-02-10 12:09:35 +10:30
parent aff1b9a5e4
commit 160493e725
31 changed files with 42 additions and 42 deletions

View File

@@ -75,7 +75,7 @@ abstract class AbstractModel extends Eloquent
{
$defaults = [];
static::$dispatcher->fire(
static::$dispatcher->dispatch(
new ConfigureModelDefaultAttributes($this, $defaults)
);
@@ -96,7 +96,7 @@ abstract class AbstractModel extends Eloquent
$class = get_class($this);
if (! isset($dates[$class])) {
static::$dispatcher->fire(
static::$dispatcher->dispatch(
new ConfigureModelDates($this, $this->dates)
);