-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathextend.php
More file actions
32 lines (25 loc) · 812 Bytes
/
extend.php
File metadata and controls
32 lines (25 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/*
* This file is part of fof/default-group.
*
* Copyright (c) FriendsOfFlarum.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace FoF\DefaultGroup;
use Flarum\Extend;
use Flarum\Group\Event\Deleted;
use Flarum\Group\Group;
use Flarum\User\Event\Activated;
return [
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js')
->css(__DIR__.'/resources/less/admin.less'),
new Extend\Locales(__DIR__.'/resources/locale'),
(new Extend\Event())
->listen(Activated::class, Listeners\AddDefaultGroup::class)
->listen(Deleted::class, Listeners\GroupDeleted::class),
(new Extend\Settings())
->default('fof-default-group.group', Group::MEMBER_ID),
];