mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 06:53:47 +08:00
Use new listen API
This commit is contained in:
parent
327b65912e
commit
19ebd19000
|
@ -5,10 +5,8 @@ use Illuminate\Events\Dispatcher;
|
|||
|
||||
class Extension extends BaseExtension
|
||||
{
|
||||
public function boot(Dispatcher $events)
|
||||
public function listen(Dispatcher $events)
|
||||
{
|
||||
Tag::setValidator($this->app->make('validator'));
|
||||
|
||||
$events->subscribe('Flarum\Tags\Listeners\AddClientAssets');
|
||||
$events->subscribe('Flarum\Tags\Listeners\AddModelRelationship');
|
||||
$events->subscribe('Flarum\Tags\Listeners\ConfigureDiscussionPermissions');
|
||||
|
@ -19,4 +17,9 @@ class Extension extends BaseExtension
|
|||
$events->subscribe('Flarum\Tags\Listeners\UpdateTagMetadata');
|
||||
$events->subscribe('Flarum\Tags\Listeners\AddTagGambit');
|
||||
}
|
||||
|
||||
public function boot()
|
||||
{
|
||||
Tag::setValidator($this->app->make('validator'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user