-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathextend.php
20 lines (18 loc) · 816 Bytes
/
extend.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php namespace TitusPiJean\Flarum\Auth\LDAP;
use Flarum\Extend;
use Flarum\Foundation\Application;
use Illuminate\Events\Dispatcher;
return [
(new Extend\Locales(__DIR__ . '/locale')),
(new Extend\Frontend('admin'))
->js(__DIR__.'/js/dist/admin.js'),
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/forum.js')
->css(__DIR__.'/less/forum.less'),
(new Extend\Routes('forum'))
->post('/auth/ldap', 'auth.ldap.post', Controllers\LDAPAuthController::class)
->get('/auth/ldap', 'auth.ldap.get', Controllers\LDAPAuthController::class),
(new Extend\Settings)
->serializeToForum('tituspijean-auth-ldap.onlyUse', 'tituspijean-auth-ldap.onlyUse', 'boolVal', false)
->serializeToForum('tituspijean-auth-ldap.method_name', 'tituspijean-auth-ldap.method_name', 'strVal', 'LDAP'),
];