mirror of
https://github.com/flarum/core.git
synced 2025-10-12 15:34:26 +02:00
fire -> dispatch
As per Illuminate\Contracts\Events\Dispatcher
This commit is contained in:
@@ -57,7 +57,7 @@ class CreateGroupHandler
|
||||
array_get($data, 'attributes.icon')
|
||||
);
|
||||
|
||||
$this->events->fire(
|
||||
$this->events->dispatch(
|
||||
new Saving($group, $actor, $data)
|
||||
);
|
||||
|
||||
|
@@ -50,7 +50,7 @@ class DeleteGroupHandler
|
||||
|
||||
$this->assertCan($actor, 'delete', $group);
|
||||
|
||||
$this->events->fire(
|
||||
$this->events->dispatch(
|
||||
new Deleting($group, $actor, $command->data)
|
||||
);
|
||||
|
||||
|
@@ -75,7 +75,7 @@ class EditGroupHandler
|
||||
$group->icon = $attributes['icon'];
|
||||
}
|
||||
|
||||
$this->events->fire(
|
||||
$this->events->dispatch(
|
||||
new Saving($group, $actor, $data)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user