Loose type hints to support the adapters.

This commit is contained in:
David Molineus
2017-10-09 14:40:20 +02:00
parent d1c6424699
commit 7cee2fe631
3 changed files with 6 additions and 5 deletions

View File

@@ -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);

View File

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

View File

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