-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathPlugin.php
36 lines (31 loc) · 1009 Bytes
/
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
<?php
namespace Initbiz\LeafletPro;
use System\Classes\PluginBase;
/**
* LeafletPro Plugin Information File
*/
class Plugin extends PluginBase
{
public $require = ['RainLab.Location', 'October.Drivers'];
/**
* Registers any front-end components implemented in this plugin.
*
* @return array
*/
public function registerComponents()
{
return [
\Initbiz\LeafletPro\Components\LeafletMap::class => 'leafletmap',
\Initbiz\LeafletPro\Components\SingleMarkerMap::class => 'singleMarkerMap',
\Initbiz\LeafletPro\Components\ListMarkersMap::class => 'listMarkersMap',
\Initbiz\LeafletPro\Components\PickLocalization::class => 'pickLocalization',
];
}
public function registerPageSnippets()
{
return [
'Initbiz\LeafletPro\Components\LeafletMap' => 'leafletmap',
'Initbiz\LeafletPro\Components\SingleMarkerMap' => 'singleMarkerMap',
];
}
}