Files
contao-leaflet-maps/src/Bundle/Resources/config/services.yml

120 lines
4.4 KiB
YAML
Raw Normal View History

2017-10-06 11:47:54 +02:00
parameters:
netzmacht.contao_leaflet.cache_dir: '%kernel.cache_dir%/leaflet'
2017-10-06 11:47:54 +02:00
# JSON_UNESCAPED_SLASHES ^ Netzmacht\JavascriptBuilder\Flags::BUILD_STACK
netzmacht.contao_leaflet.encoding_flags: 16448
2017-10-06 11:47:54 +02:00
services:
netzmacht.contao_leaflet.map.provider:
2017-10-06 11:47:54 +02:00
class: Netzmacht\Contao\Leaflet\MapProvider
arguments:
- '@netzmacht.contao_leaflet.definition.mapper'
- '@netzmacht.contao_leaflet.definition.builder'
2017-10-06 11:47:54 +02:00
- '@event_dispatcher'
2017-10-11 12:08:31 +02:00
- '@netzmacht.contao_toolkit.contao.input_adapter'
- '@netzmacht.contao_leaflet.map.assets'
- '@netzmacht.contao_leaflet.cache'
2017-10-11 15:42:49 +02:00
- '@netzmacht.contao_leaflet.frontend.data_controller'
2017-10-06 11:47:54 +02:00
netzmacht.contao_leaflet.libraries:
class: Netzmacht\Contao\Leaflet\Frontend\Assets\LibrariesConfiguration
arguments:
- '@contao.framework'
2017-10-11 14:40:01 +02:00
netzmacht.contao_leaflet.filter_factory:
class: Netzmacht\Contao\Leaflet\Filter\FilterFactory
arguments:
- '%netzmacht.contao_leaflet.filters%'
netzmacht.contao_leaflet.cache.default:
2017-10-06 11:47:54 +02:00
class: Doctrine\Common\Cache\FilesystemCache
arguments:
- '%netzmacht.contao_leaflet.cache_dir%'
2017-10-06 11:47:54 +02:00
netzmacht.contao_leaflet.cache.debug:
2017-10-06 11:47:54 +02:00
class: Doctrine\Common\Cache\ArrayCache
netzmacht.contao_leaflet.frontend.value_filter:
2017-10-06 11:47:54 +02:00
class: Netzmacht\Contao\Leaflet\Frontend\ValueFilter
2017-10-11 17:57:48 +02:00
arguments:
- '@contao.framework'
netzmacht.contao_leaflet.map.assets:
class: Netzmacht\Contao\Leaflet\Encoder\ContaoAssets
2017-10-06 11:47:54 +02:00
arguments:
- '@netzmacht.contao_toolkit.assets_manager'
netzmacht.contao_leaflet.definition.builder:
2017-10-06 11:47:54 +02:00
class: Netzmacht\LeafletPHP\Leaflet
arguments:
- '@netzmacht.contao_leaflet.definition.builder.javascript_builder'
- '@netzmacht.contao_leaflet.definition.builder.event_dispatcher'
2017-10-06 11:47:54 +02:00
- []
- '%netzmacht.contao_leaflet.encoding_flags%'
2017-10-06 11:47:54 +02:00
netzmacht.contao_leaflet.definition.builder.javascript_builder:
2017-10-06 11:47:54 +02:00
class: Netzmacht\JavascriptBuilder\Builder
arguments:
- '@netzmacht.contao_leaflet.definition.encoder_factory'
2017-10-06 11:47:54 +02:00
netzmacht.contao_leaflet.definition.builder.event_dispatcher:
2017-10-06 11:47:54 +02:00
class: Symfony\Component\EventDispatcher\EventDispatcher
netzmacht.contao_leaflet.definition.mapper:
2017-10-06 11:47:54 +02:00
class: Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper
arguments:
- '@event_dispatcher'
netzmacht.contao_leaflet.definition.encoder_factory:
2017-10-06 11:47:54 +02:00
class: Netzmacht\Contao\Leaflet\Encoder\EncoderFactory
arguments:
- '@netzmacht.contao_leaflet.definition.builder.event_dispatcher'
2017-10-06 11:47:54 +02:00
netzmacht.contao_leaflet.definition.alias_generator.factory_default:
2017-10-06 11:47:54 +02:00
class: Netzmacht\Contao\Leaflet\Alias\DefaultAliasGeneratorFactory
arguments:
- '@database_connection'
netzmacht.contao_leaflet.definition.alias_generator.factory_parent:
2017-10-06 11:47:54 +02:00
class: Netzmacht\Contao\Leaflet\Alias\ParentAliasGeneratorFactory
arguments:
- '@database_connection'
2017-10-06 14:54:58 +02:00
netzmacht.contao_leaflet.frontend.element_factory:
2017-10-06 14:54:58 +02:00
class: Netzmacht\Contao\Leaflet\Frontend\ContentElement\MapElementFactory
arguments:
- '@templating'
- '@translator'
- '@netzmacht.contao_leaflet.map.provider'
- '@netzmacht.contao_toolkit.contao.input_adapter'
- '@netzmacht.contao_toolkit.contao.config_adapter'
2017-10-06 14:54:58 +02:00
tags:
- { name: 'netzmacht.contao_toolkit.component.content_element_factory' }
2017-10-12 10:57:04 +02:00
- { name: 'netzmacht.contao_toolkit.component.content_element', alias: 'leaflet', category: 'includes' }
2017-10-06 14:54:58 +02:00
netzmacht.contao_leaflet.frontend.module_factory:
2017-10-06 15:10:01 +02:00
class: Netzmacht\Contao\Leaflet\Frontend\Module\MapModuleFactory
arguments:
- '@templating'
- '@translator'
- '@netzmacht.contao_leaflet.map.provider'
- '@netzmacht.contao_toolkit.contao.input_adapter'
- '@netzmacht.contao_toolkit.contao.config_adapter'
2017-10-06 15:10:01 +02:00
tags:
- { name: 'netzmacht.contao_toolkit.component.frontend_module_factory' }
2017-10-12 10:57:04 +02:00
- { name: 'netzmacht.contao_toolkit.component.frontend_module', alias: 'leaflet', category: 'includes' }
2017-10-06 15:10:01 +02:00
netzmacht.contao_leaflet.frontend.insert_tag:
2017-10-06 15:10:01 +02:00
class: Netzmacht\Contao\Leaflet\Frontend\InsertTag\LeafletInsertTagParser
arguments:
- '@netzmacht.contao_leaflet.map.provider'
2017-10-06 15:10:01 +02:00
- '%kernel.debug%'
tags:
- { name: 'contao.hook', hook: 'replaceInsertTags', method: 'replace' }
2017-10-11 15:42:49 +02:00
netzmacht.contao_leaflet.frontend.data_controller:
class: Netzmacht\Contao\Leaflet\Frontend\DataController
arguments:
- '@netzmacht.contao_leaflet.filter_factory'
- '%kernel.debug%'