-
Notifications
You must be signed in to change notification settings - Fork 0
/
elgg-plugin.php
42 lines (39 loc) · 986 Bytes
/
elgg-plugin.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
38
39
40
41
42
<?php
# Fix to include images uploaded using hypeEmbed originally
use Elgg\Router\Middleware\Gatekeeper;
use Wabue\Core\AppointmentGatekeeper;
return [
'bootstrap' => Wabue\Core\Bootstrap::class,
'entities' => [
[
'type' => 'object',
'subtype' => 'embed_file',
'class' => \ElggFile::class
]
],
'hooks' => [
'commands' => [
'cli' => [
'\Wabue\Core\Commands::registerCommands' => []
]
]
],
'routes' => [
'view:uploadappointments' => [
'path' => '/wabue/appointments',
'resource' => 'wabue/appointments',
'middleware' => [
Gatekeeper::class,
AppointmentGatekeeper::class
]
],
],
'settings' => [
'appointment_users' => ''
],
'actions' => [
'wabue/appointment/import' => [
'access' => 'logged_in'
]
]
];