Use new listen API

This commit is contained in:
Toby Zerner 2015-08-13 12:51:24 +09:30
parent 06f4475d59
commit ea5dead830

View File

@ -5,25 +5,10 @@ use Illuminate\Events\Dispatcher;
class Extension extends BaseExtension
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot(Dispatcher $events)
public function listen(Dispatcher $events)
{
$events->subscribe('Flarum\Suspend\Listeners\AddClientAssets');
$events->subscribe('Flarum\Suspend\Listeners\AddApiAttributes');
$events->subscribe('Flarum\Suspend\Listeners\PersistData');
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
//
}
}