From 6af1b3fa22e0bd1a6725e87892cb9dad5eaf0152 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Mon, 9 Oct 2017 14:41:53 +0200 Subject: [PATCH] Register the hash subscriber and drop old event_subscribers.php. --- src/Resources/config/listeners.yml | 5 +++++ .../contao/config/event_subscribers.php | 17 ----------------- 2 files changed, 5 insertions(+), 17 deletions(-) delete mode 100644 src/Resources/contao/config/event_subscribers.php 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'], -);