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:
@@ -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)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user