mirror of
https://github.com/flarum/core.git
synced 2025-10-23 04:36:08 +02:00
fire -> dispatch
As per Illuminate\Contracts\Events\Dispatcher
This commit is contained in:
@@ -90,13 +90,13 @@ abstract class AbstractSerializeController implements ControllerInterface
|
||||
{
|
||||
$document = new Document;
|
||||
|
||||
static::$events->fire(
|
||||
static::$events->dispatch(
|
||||
new WillGetData($this)
|
||||
);
|
||||
|
||||
$data = $this->data($request, $document);
|
||||
|
||||
static::$events->fire(
|
||||
static::$events->dispatch(
|
||||
new WillSerializeData($this, $data, $request, $document)
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user