2017-10-06 11:47:54 +02:00
|
|
|
parameters:
|
|
|
|
|
netzmacht.contao_leaflet_maps.cache_dir: '%kernel.cache_dir%/leaflet'
|
|
|
|
|
|
|
|
|
|
# JSON_UNESCAPED_SLASHES ^ Netzmacht\JavascriptBuilder\Flags::BUILD_STACK
|
|
|
|
|
netzmacht.contao_leaflet_maps.encoding_flags: 16448
|
|
|
|
|
|
2017-10-05 17:35:46 +02:00
|
|
|
services:
|
2017-10-06 11:47:54 +02:00
|
|
|
netzmacht.contao_leaflet_maps.map.provider:
|
|
|
|
|
class: Netzmacht\Contao\Leaflet\MapProvider
|
|
|
|
|
arguments:
|
|
|
|
|
- '@netzmacht.contao_leaflet_maps.definition.mapper'
|
|
|
|
|
- '@netzmacht.contao_leaflet_maps.definition.builder'
|
|
|
|
|
- '@event_dispatcher'
|
|
|
|
|
- '@netzmacht.contao_toolkit.contao.input'
|
|
|
|
|
- '@netzmacht.contao_leaflet_maps.map.assets'
|
|
|
|
|
- '@netzmacht.contao_leaflet_maps.cache'
|
2017-10-09 14:40:20 +02:00
|
|
|
- [] # TODO: Rework filter handling.
|
2017-10-06 11:47:54 +02:00
|
|
|
- '%kernel.debug%'
|
|
|
|
|
|
2017-10-09 15:36:11 +02:00
|
|
|
netzmacht.contao_leaflet_maps.libraries:
|
|
|
|
|
class: Netzmacht\Contao\Leaflet\Frontend\Assets\LibrariesConfiguration
|
|
|
|
|
arguments:
|
|
|
|
|
- '@contao.framework'
|
|
|
|
|
|
2017-10-06 11:47:54 +02:00
|
|
|
netzmacht.contao_leaflet_maps.cache:
|
|
|
|
|
alias: 'netzmacht.contao_leaflet_maps.cache.default'
|
|
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.cache.default:
|
|
|
|
|
class: Doctrine\Common\Cache\FilesystemCache
|
|
|
|
|
arguments:
|
|
|
|
|
- '%netzmacht.contao_leaflet_maps.cache_dir%'
|
|
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.cache.debug:
|
|
|
|
|
class: Doctrine\Common\Cache\ArrayCache
|
|
|
|
|
|
2017-10-05 17:35:46 +02:00
|
|
|
netzmacht.contao_leaflet_maps.frontend.value_filter:
|
2017-10-06 11:47:54 +02:00
|
|
|
class: Netzmacht\Contao\Leaflet\Frontend\ValueFilter
|
2017-10-06 09:28:33 +02:00
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.map.assets:
|
2017-10-06 11:47:54 +02:00
|
|
|
class: Netzmacht\Contao\Leaflet\ContaoAssets
|
|
|
|
|
arguments:
|
|
|
|
|
- '@netzmacht.contao_toolkit.assets_manager'
|
|
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.definition.builder:
|
|
|
|
|
class: Netzmacht\LeafletPHP\Leaflet
|
|
|
|
|
arguments:
|
|
|
|
|
- '@netzmacht.contao_leaflet_maps.definition.builder.javascript_builder'
|
|
|
|
|
- '@netzmacht.contao_leaflet_maps.definition.builder.event_dispatcher'
|
|
|
|
|
- []
|
|
|
|
|
- '%netzmacht.contao_leaflet_maps.encoding_flags%'
|
|
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.definition.builder.javascript_builder:
|
|
|
|
|
class: Netzmacht\JavascriptBuilder\Builder
|
|
|
|
|
arguments:
|
|
|
|
|
- '@netzmacht.contao_leaflet_maps.definition.encoder_factory'
|
|
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.definition.builder.event_dispatcher:
|
|
|
|
|
class: Symfony\Component\EventDispatcher\EventDispatcher
|
|
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.definition.mapper:
|
|
|
|
|
class: Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper
|
|
|
|
|
arguments:
|
|
|
|
|
- '@event_dispatcher'
|
|
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.definition.encoder_factory:
|
|
|
|
|
class: Netzmacht\Contao\Leaflet\Encoder\EncoderFactory
|
|
|
|
|
arguments:
|
|
|
|
|
- '@netzmacht.contao_leaflet_maps.definition.builder.event_dispatcher'
|
|
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default:
|
|
|
|
|
class: Netzmacht\Contao\Leaflet\Alias\DefaultAliasGeneratorFactory
|
|
|
|
|
arguments:
|
|
|
|
|
- '@database_connection'
|
|
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.definition.alias_generator.factory_parent:
|
|
|
|
|
class: Netzmacht\Contao\Leaflet\Alias\ParentAliasGeneratorFactory
|
|
|
|
|
arguments:
|
|
|
|
|
- '@database_connection'
|
2017-10-06 14:54:58 +02:00
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.frontend.element_factory:
|
|
|
|
|
class: Netzmacht\Contao\Leaflet\Frontend\ContentElement\MapElementFactory
|
|
|
|
|
arguments:
|
|
|
|
|
- '@service_container'
|
|
|
|
|
tags:
|
|
|
|
|
- { name: 'netzmacht.contao_toolkit.component.content_element_factory' }
|
2017-10-10 15:25:35 +02:00
|
|
|
- { name: 'netzmacht.contao_toolkit.component.content_element', alias: 'leaflet', category: 'include' }
|
2017-10-06 14:54:58 +02:00
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.frontend.module_factory:
|
2017-10-06 15:10:01 +02:00
|
|
|
class: Netzmacht\Contao\Leaflet\Frontend\Module\MapModuleFactory
|
|
|
|
|
arguments:
|
|
|
|
|
- '@service_container'
|
|
|
|
|
tags:
|
|
|
|
|
- { name: 'netzmacht.contao_toolkit.component.frontend_module_factory' }
|
2017-10-10 15:25:35 +02:00
|
|
|
- { name: 'netzmacht.contao_toolkit.component.frontend_module', alias: 'leaflet', category: include }
|
2017-10-06 15:10:01 +02:00
|
|
|
|
|
|
|
|
netzmacht.contao_leaflet_maps.frontend.insert_tag:
|
|
|
|
|
class: Netzmacht\Contao\Leaflet\Frontend\InsertTag\LeafletInsertTagParser
|
|
|
|
|
arguments:
|
|
|
|
|
- '@netzmacht.contao_leaflet_maps.map.provider'
|
|
|
|
|
- '%kernel.debug%'
|
|
|
|
|
tags:
|
|
|
|
|
- { name: 'netzmacht.contao_toolkit.insert_tag_parser' }
|