Register the hash subscriber and drop old event_subscribers.php.

This commit is contained in:
David Molineus
2017-10-09 14:41:53 +02:00
parent 7cee2fe631
commit 6af1b3fa22
2 changed files with 5 additions and 17 deletions

View File

@@ -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:

View File

@@ -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'],
);