diff --git a/src/Resources/config/listeners.yml b/src/Resources/config/listeners.yml index 99cd010..a9986cf 100644 --- a/src/Resources/config/listeners.yml +++ b/src/Resources/config/listeners.yml @@ -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: diff --git a/src/Resources/contao/config/event_subscribers.php b/src/Resources/contao/config/event_subscribers.php deleted file mode 100644 index 50c807e..0000000 --- a/src/Resources/contao/config/event_subscribers.php +++ /dev/null @@ -1,17 +0,0 @@ - - * @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'], -);