forked from Snck3rs/contao-leaflet-maps
Register the hash subscriber and drop old event_subscribers.php.
This commit is contained in:
@@ -55,6 +55,11 @@ services:
|
||||
tags:
|
||||
- { name: 'kernel.event_subscriber' }
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.hash_subscriber:
|
||||
class: Netzmacht\Contao\Leaflet\Subscriber\HashSubscriber
|
||||
tags:
|
||||
- { name: 'kernel.event_subscriber' }
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.load_assets:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\LoadAssetsListener
|
||||
arguments:
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Leaflet maps for Contao CMS.
|
||||
*
|
||||
* @package contao-leaflet-maps
|
||||
* @author David Molineus <david.molineus@netzmacht.de>
|
||||
* @copyright 2016-2017 netzmacht David Molineus. All rights reserved.
|
||||
* @license LGPL-3.0 https://github.com/netzmacht/contao-leaflet-maps/blob/master/LICENSE
|
||||
* @filesource
|
||||
*/
|
||||
|
||||
return array(
|
||||
$GLOBALS['container']['leaflet.boot.subscriber'],
|
||||
'Netzmacht\Contao\Leaflet\Subscriber\HashSubscriber',
|
||||
$GLOBALS['container']['leaflet.subscriber.geo-json'],
|
||||
);
|
||||
Reference in New Issue
Block a user