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, TemplateFactory $templateFactory,
Translator $translator, Translator $translator,
MapProvider $mapProvider, MapProvider $mapProvider,
Input $input, $input,
Config $config, $config,
$column = null $column = null
) { ) {
parent::__construct($model, $templateFactory, $translator, $column); parent::__construct($model, $templateFactory, $translator, $column);

View File

@@ -12,6 +12,7 @@
namespace Netzmacht\Contao\Leaflet; namespace Netzmacht\Contao\Leaflet;
use Contao\Input;
use Doctrine\Common\Cache\Cache; use Doctrine\Common\Cache\Cache;
use Netzmacht\Contao\Leaflet\Event\GetJavascriptEvent; use Netzmacht\Contao\Leaflet\Event\GetJavascriptEvent;
use Netzmacht\Contao\Leaflet\Filter\Filter; use Netzmacht\Contao\Leaflet\Filter\Filter;
@@ -94,7 +95,7 @@ class MapProvider
* @param DefinitionMapper $mapper The definition mapper. * @param DefinitionMapper $mapper The definition mapper.
* @param Leaflet $leaflet The Leaflet instance. * @param Leaflet $leaflet The Leaflet instance.
* @param EventDispatcher $eventDispatcher The Contao event dispatcher. * @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 ContaoAssets $assets Assets handler.
* @param Cache $cache Cache. * @param Cache $cache Cache.
* @param array $filters Request filters configuration. * @param array $filters Request filters configuration.
@@ -104,7 +105,7 @@ class MapProvider
DefinitionMapper $mapper, DefinitionMapper $mapper,
Leaflet $leaflet, Leaflet $leaflet,
EventDispatcher $eventDispatcher, EventDispatcher $eventDispatcher,
\Input $input, $input,
ContaoAssets $assets, ContaoAssets $assets,
Cache $cache, Cache $cache,
array $filters, array $filters,

View File

@@ -14,7 +14,7 @@ services:
- '@netzmacht.contao_toolkit.contao.input' - '@netzmacht.contao_toolkit.contao.input'
- '@netzmacht.contao_leaflet_maps.map.assets' - '@netzmacht.contao_leaflet_maps.map.assets'
- '@netzmacht.contao_leaflet_maps.cache' - '@netzmacht.contao_leaflet_maps.cache'
- '' # TODO: Rework filter handling. - [] # TODO: Rework filter handling.
- '%kernel.debug%' - '%kernel.debug%'
netzmacht.contao_leaflet_maps.cache: netzmacht.contao_leaflet_maps.cache: