mirror of
https://github.com/flarum/core.git
synced 2025-08-01 22:20:21 +02:00
Laravel: Stop calling deprecated fire() method
This has been deprecated and removed from the contract for a long time, and it will be completely dropped in v5.8, our next upgrade target.
This commit is contained in:
@@ -100,7 +100,7 @@ class ApiServiceProvider extends AbstractServiceProvider
|
||||
'discussionRenamed' => BasicDiscussionSerializer::class
|
||||
];
|
||||
|
||||
$this->app->make('events')->fire(
|
||||
$this->app->make('events')->dispatch(
|
||||
new ConfigureNotificationTypes($blueprints, $serializers)
|
||||
);
|
||||
|
||||
@@ -121,7 +121,7 @@ class ApiServiceProvider extends AbstractServiceProvider
|
||||
$callback = include __DIR__.'/routes.php';
|
||||
$callback($routes, $factory);
|
||||
|
||||
$this->app->make('events')->fire(
|
||||
$this->app->make('events')->dispatch(
|
||||
new ConfigureApiRoutes($routes, $factory)
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user