From 7cee2fe6310163abb9f19313f35f891eceb85532 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Mon, 9 Oct 2017 14:40:20 +0200 Subject: [PATCH] Loose type hints to support the adapters. --- src/Frontend/AbstractMapHybrid.php | 4 ++-- src/MapProvider.php | 5 +++-- src/Resources/config/services.yml | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Frontend/AbstractMapHybrid.php b/src/Frontend/AbstractMapHybrid.php index ac83fb6..4c807d3 100644 --- a/src/Frontend/AbstractMapHybrid.php +++ b/src/Frontend/AbstractMapHybrid.php @@ -69,8 +69,8 @@ abstract class AbstractMapHybrid extends AbstractHybrid TemplateFactory $templateFactory, Translator $translator, MapProvider $mapProvider, - Input $input, - Config $config, + $input, + $config, $column = null ) { parent::__construct($model, $templateFactory, $translator, $column); diff --git a/src/MapProvider.php b/src/MapProvider.php index ee4083a..99192ee 100644 --- a/src/MapProvider.php +++ b/src/MapProvider.php @@ -12,6 +12,7 @@ namespace Netzmacht\Contao\Leaflet; +use Contao\Input; use Doctrine\Common\Cache\Cache; use Netzmacht\Contao\Leaflet\Event\GetJavascriptEvent; use Netzmacht\Contao\Leaflet\Filter\Filter; @@ -94,7 +95,7 @@ class MapProvider * @param DefinitionMapper $mapper The definition mapper. * @param Leaflet $leaflet The Leaflet instance. * @param EventDispatcher $eventDispatcher The Contao event dispatcher. - * @param \Input $input Thw request input. + * @param Input $input Thw request input. * @param ContaoAssets $assets Assets handler. * @param Cache $cache Cache. * @param array $filters Request filters configuration. @@ -104,7 +105,7 @@ class MapProvider DefinitionMapper $mapper, Leaflet $leaflet, EventDispatcher $eventDispatcher, - \Input $input, + $input, ContaoAssets $assets, Cache $cache, array $filters, diff --git a/src/Resources/config/services.yml b/src/Resources/config/services.yml index f2e46ee..2b02eda 100644 --- a/src/Resources/config/services.yml +++ b/src/Resources/config/services.yml @@ -14,7 +14,7 @@ services: - '@netzmacht.contao_toolkit.contao.input' - '@netzmacht.contao_leaflet_maps.map.assets' - '@netzmacht.contao_leaflet_maps.cache' - - '' # TODO: Rework filter handling. + - [] # TODO: Rework filter handling. - '%kernel.debug%' netzmacht.contao_leaflet_maps.cache: