forked from spookygames/flarum-ext-auth-keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextend.php
More file actions
26 lines (19 loc) · 774 Bytes
/
extend.php
File metadata and controls
26 lines (19 loc) · 774 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
<?php
use SpookyGames\Auth\Keycloak\KeycloakAuthController;
use SpookyGames\Auth\Keycloak\Listener;
use Illuminate\Events\Dispatcher;
use Flarum\Extend;
return [
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/less/forum.less'),
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js'),
(new Extend\Routes('forum'))
->get('/auth/keycloak', 'auth.keycloak.get', KeycloakAuthController::class),
(new Extend\Event())
->subscribe(Listener\AddLogoutRedirect::class),
(new Extend\Settings)
->serializeToForum('spookygames-auth-keycloak.delegate_avatars', 'spookygames-auth-keycloak.delegate_avatars', 'boolVal', false),
new Extend\Locales(__DIR__.'/locale'),
];