framework/extensions/pusher/bootstrap.php

20 lines
503 B
PHP
Raw Normal View History

2015-08-04 17:19:17 +09:30
<?php
2015-09-04 12:30:55 +09:30
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2015-10-13 12:29:00 +10:30
use Flarum\Pusher\Listener;
use Illuminate\Contracts\Events\Dispatcher;
2015-08-04 17:19:17 +09:30
2015-10-13 12:29:00 +10:30
return function (Dispatcher $events) {
$events->subscribe(Listener\AddClientAssets::class);
$events->subscribe(Listener\AddPusherApi::class);
$events->subscribe(Listener\PushNewPosts::class);
2016-02-25 22:56:35 -05:00
};