mirror of
https://github.com/flarum/framework.git
synced 2024-12-03 07:33:36 +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
|
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\AddClientAssets');
|
||||||
$events->subscribe('Flarum\Tags\Listeners\AddModelRelationship');
|
$events->subscribe('Flarum\Tags\Listeners\AddModelRelationship');
|
||||||
$events->subscribe('Flarum\Tags\Listeners\ConfigureDiscussionPermissions');
|
$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\UpdateTagMetadata');
|
||||||
$events->subscribe('Flarum\Tags\Listeners\AddTagGambit');
|
$events->subscribe('Flarum\Tags\Listeners\AddTagGambit');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function boot()
|
||||||
|
{
|
||||||
|
Tag::setValidator($this->app->make('validator'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user