Use new listen API

This commit is contained in:
Toby Zerner 2015-08-13 12:51:40 +09:30
parent 327b65912e
commit 19ebd19000

View File

@ -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'));
}
}