forked from cmextension/mapkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·44 lines (33 loc) · 745 Bytes
/
index.php
File metadata and controls
executable file
·44 lines (33 loc) · 745 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
33
34
35
36
37
38
39
40
41
42
43
44
<?php
use Pagekit\Application;
return [
'name' => 'cmextension/mapkit',
'type' => 'extension',
'main' => 'CMExtension\\Mapkit\\MapkitModule',
'autoload' => [
'CMExtension\\Mapkit\\' => 'src'
],
'permissions' => [
'mapkit: manage settings' => [
'title' => 'Manage settings'
],
],
'widgets' => [
'widgets/mapkit.php'
],
'events' => [
'view.scripts' => function ($event, $scripts) use ($app) {
$scripts->register('mapkit-settings', 'cmextension/mapkit:app/bundle/settings.js', '~extensions');
},
'site' => function ($event, $app) {
$module = $app->module('cmextension/mapkit');
}
],
'resources' => [
'views:' => 'views'
],
'settings' => 'settings-mapkit',
'config' => [
'api_key' => ''
],
];