mirror of
https://github.com/flarum/framework.git
synced 2025-04-26 14:44:03 +08:00
Use new listen API
This commit is contained in:
parent
7fdd7c0c36
commit
d53571abcf
@ -5,25 +5,10 @@ use Illuminate\Events\Dispatcher;
|
|||||||
|
|
||||||
class Extension extends BaseExtension
|
class Extension extends BaseExtension
|
||||||
{
|
{
|
||||||
/**
|
public function listen(Dispatcher $events)
|
||||||
* Bootstrap the application events.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function boot(Dispatcher $events)
|
|
||||||
{
|
{
|
||||||
$events->subscribe('Flarum\Pusher\Listeners\AddClientAssets');
|
$events->subscribe('Flarum\Pusher\Listeners\AddClientAssets');
|
||||||
$events->subscribe('Flarum\Pusher\Listeners\PushNewPosts');
|
$events->subscribe('Flarum\Pusher\Listeners\PushNewPosts');
|
||||||
$events->subscribe('Flarum\Pusher\Listeners\AddApiAttributes');
|
$events->subscribe('Flarum\Pusher\Listeners\AddApiAttributes');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Register the service provider.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function register()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user