-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrap.php
24 lines (21 loc) · 878 Bytes
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
//#DEBUG use Flarum\Likes\Listener;
use JordanJay29\Reactions\Listener;
use Illuminate\Contracts\Events\Dispatcher;
return function (Dispatcher $events) {
$events->subscribe(Listener\AddClientAssets::class);
//#DEBUG $events->subscribe(Listener\AddPostLikesRelationship::class);
$events->subscribe(Listener\AddPostReactionsRelationship::class);
//#DEBUG $events->subscribe(Listener\SaveLikesToDatabase::class);
$events->subscribe(Listener\SaveReactionsToDatabase::class);
//#DEBUG $events->subscribe(Listener\SendNotificationWhenPostIsLiked::class);
$events->subscribe(Listener\SendNotificationWhenPostIsReactedTo::class);
};