-
Notifications
You must be signed in to change notification settings - Fork 16
/
extend.php
37 lines (32 loc) · 1.13 KB
/
extend.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
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/*
* This file is part of push-edx/flarum-ext-restricted-reply.
*
* Copyright (c) gpascualg.
*
* http://pushedx.net
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PushEDX\Chat;
//use Flagrow\ImageUpload\Providers\StorageServiceProvider;
use Flarum\Extend;
use Flarum\Foundation\Application;
use Illuminate\Contracts\Events\Dispatcher;
return [
(new Extend\Frontend('admin'))
->css(__DIR__ . '/resources/less/admin/settingsPage.less')
->js(__DIR__ . '/js/dist/admin.js'),
(new Extend\Frontend('forum'))
->css(__DIR__ . '/resources/less/forum/chat.less')
->js(__DIR__ . '/js/dist/forum.js'),
new Extend\Locales(__DIR__ . '/resources/locale'),
function (Dispatcher $events, Application $app) {
//$events->subscribe(Listeners\LoadSettingsFromDatabase::class);
// registers the API endpoint and the permission send to the API
$events->subscribe(Listeners\AddChatApi::class);
// register the service provider
//$app->register(StorageServiceProvider::class);
}
];