mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-29 03:24:37 +01:00
Loose type hints to support the adapters.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user