Use contao_leaflet as reference for services and tags instead of contao_leaflet_maps.

This commit is contained in:
David Molineus
2017-10-11 11:47:21 +02:00
parent 1dce4bc1c6
commit 86bcae2f71
26 changed files with 271 additions and 271 deletions

View File

@@ -30,12 +30,12 @@ class RegisterDefinitionMapperPass implements CompilerPassInterface
*/ */
public function process(ContainerBuilder $container) public function process(ContainerBuilder $container)
{ {
if (!$container->hasDefinition('netzmacht.contao_leaflet_maps.definition.mapper')) { if (!$container->hasDefinition('netzmacht.contao_leaflet.definition.mapper')) {
return; return;
} }
$definition = $container->getDefinition('netzmacht.contao_leaflet_maps.definition.mapper'); $definition = $container->getDefinition('netzmacht.contao_leaflet.definition.mapper');
$taggedServices = $container->findTaggedServiceIds('netzmacht.contao_leaflet_maps.mapper'); $taggedServices = $container->findTaggedServiceIds('netzmacht.contao_leaflet.mapper');
foreach ($taggedServices as $serviceId => $tags) { foreach ($taggedServices as $serviceId => $tags) {
foreach ($tags as $attributes) { foreach ($tags as $attributes) {

View File

@@ -30,12 +30,12 @@ class RegisterEncodersPass implements CompilerPassInterface
*/ */
public function process(ContainerBuilder $container) public function process(ContainerBuilder $container)
{ {
if (!$container->hasDefinition('netzmacht.contao_leaflet_maps.definition.builder.event_dispatcher')) { if (!$container->hasDefinition('netzmacht.contao_leaflet.definition.builder.event_dispatcher')) {
return; return;
} }
$definition = $container->getDefinition('netzmacht.contao_leaflet_maps.definition.builder.event_dispatcher'); $definition = $container->getDefinition('netzmacht.contao_leaflet.definition.builder.event_dispatcher');
$serviceIds = $container->findTaggedServiceIds('netzmacht.contao_leaflet_maps.encoder'); $serviceIds = $container->findTaggedServiceIds('netzmacht.contao_leaflet.encoder');
foreach (array_keys($serviceIds) as $serviceId) { foreach (array_keys($serviceIds) as $serviceId) {
$definition->addMethodCall('addSubscriber', [new Reference($serviceId)]); $definition->addMethodCall('addSubscriber', [new Reference($serviceId)]);

View File

@@ -30,16 +30,16 @@ class RegisterLibrariesPass implements CompilerPassInterface
*/ */
public function process(ContainerBuilder $container) public function process(ContainerBuilder $container)
{ {
if (!$container->hasDefinition('netzmacht.contao_leaflet_maps.definition.builder')) { if (!$container->hasDefinition('netzmacht.contao_leaflet.definition.builder')) {
return; return;
} }
if (!$container->hasParameter('netzmacht.contao_leaflet_maps.libraries')) { if (!$container->hasParameter('netzmacht.contao_leaflet.libraries')) {
return; return;
} }
$definition = $container->getDefinition('netzmacht.contao_leaflet_maps.definition.builder'); $definition = $container->getDefinition('netzmacht.contao_leaflet.definition.builder');
$libraries = $container->getParameter('netzmacht.contao_leaflet_maps.libraries'); $libraries = $container->getParameter('netzmacht.contao_leaflet.libraries');
foreach ($libraries as $name => $assets) { foreach ($libraries as $name => $assets) {
if (!empty($assets['css'])) { if (!empty($assets['css'])) {

View File

@@ -38,8 +38,8 @@ class NetzmachtContaoLeafletBundle extends Bundle
$container->addCompilerPass(new RegisterLibrariesPass()); $container->addCompilerPass(new RegisterLibrariesPass());
$container->addCompilerPass( $container->addCompilerPass(
new AddTaggedServicesAsArgumentPass( new AddTaggedServicesAsArgumentPass(
'netzmacht.contao_leaflet_maps.layer_label_renderer', 'netzmacht.contao_leaflet.layer_label_renderer',
'netzmacht.contao_leaflet_maps.layer_label_renderer' 'netzmacht.contao_leaflet.layer_label_renderer'
) )
); );
} }

View File

@@ -1,5 +1,5 @@
parameters: parameters:
netzmacht.contao_leaflet_maps.amenities: netzmacht.contao_leaflet.amenities:
- 'administration' - 'administration'
- 'advertising' - 'advertising'
- 'alm' - 'alm'

View File

@@ -2,7 +2,7 @@ parameters:
# leaflet controls. # leaflet controls.
# #
# Supported leaflet control types. Register your type for the database driven definition here. # Supported leaflet control types. Register your type for the database driven definition here.
netzmacht.contao_leaflet_maps.controls: netzmacht.contao_leaflet.controls:
- 'zoom' - 'zoom'
- 'layers' - 'layers'
- 'scale' - 'scale'
@@ -13,7 +13,7 @@ parameters:
# Leaflet icons. # Leaflet icons.
# #
# Supported leaflet icon types. Register you type for the database driven definition here. # Supported leaflet icon types. Register you type for the database driven definition here.
netzmacht.contao_leaflet_maps.icons: netzmacht.contao_leaflet.icons:
- 'image' - 'image'
- 'div' - 'div'
- 'extra' - 'extra'
@@ -23,13 +23,13 @@ parameters:
# #
# The goal is to provide different style strategies. For instance a random style chooser, one which uses a color # The goal is to provide different style strategies. For instance a random style chooser, one which uses a color
# range and so one. # range and so one.
netzmacht.contao_leaflet_maps.styles: netzmacht.contao_leaflet.styles:
- 'fixed' - 'fixed'
# Leaflet vectors. # Leaflet vectors.
# #
# Supported leaflet vector types. Register you type for the database driven definition here. # Supported leaflet vector types. Register you type for the database driven definition here.
netzmacht.contao_leaflet_maps.vectors: netzmacht.contao_leaflet.vectors:
- 'polyline' - 'polyline'
- 'polygon' - 'polygon'
- 'multiPolyline' - 'multiPolyline'
@@ -48,7 +48,7 @@ parameters:
# - array: Use deserialize before adding the value # - array: Use deserialize before adding the value
# - file: Thread value a uuid and find the path. # - file: Thread value a uuid and find the path.
# - files: Thread values as a list of file uuids and get an array of paths. # - files: Thread values as a list of file uuids and get an array of paths.
netzmacht.contao_leaflet_maps.feature_model_properties: netzmacht.contao_leaflet.feature_model_properties:
tl_leaflet_marker: tl_leaflet_marker:
- 'id' - 'id'
- 'title' - 'title'

View File

@@ -6,42 +6,42 @@ services:
_defaults: _defaults:
public: false public: false
netzmacht.contao_leaflet_maps.encoder.map: netzmacht.contao_leaflet.encoder.map:
class: Netzmacht\LeafletPHP\Encoder\MapEncoder class: Netzmacht\LeafletPHP\Encoder\MapEncoder
tags: tags:
- { name: netzmacht.contao_leaflet_maps.encoder } - { name: netzmacht.contao_leaflet.encoder }
netzmacht.contao_leaflet_maps.encoder.control: netzmacht.contao_leaflet.encoder.control:
class: Netzmacht\LeafletPHP\Encoder\ControlEncoder class: Netzmacht\LeafletPHP\Encoder\ControlEncoder
tags: tags:
- { name: netzmacht.contao_leaflet_maps.encoder } - { name: netzmacht.contao_leaflet.encoder }
netzmacht.contao_leaflet_maps.encoder.group: netzmacht.contao_leaflet.encoder.group:
class: Netzmacht\LeafletPHP\Encoder\GroupEncoder class: Netzmacht\LeafletPHP\Encoder\GroupEncoder
tags: tags:
- { name: netzmacht.contao_leaflet_maps.encoder } - { name: netzmacht.contao_leaflet.encoder }
netzmacht.contao_leaflet_maps.encoder.raster: netzmacht.contao_leaflet.encoder.raster:
class: Netzmacht\LeafletPHP\Encoder\RasterEncoder class: Netzmacht\LeafletPHP\Encoder\RasterEncoder
tags: tags:
- { name: netzmacht.contao_leaflet_maps.encoder } - { name: netzmacht.contao_leaflet.encoder }
netzmacht.contao_leaflet_maps.encoder.vector: netzmacht.contao_leaflet.encoder.vector:
class: Netzmacht\LeafletPHP\Encoder\VectorEncoder class: Netzmacht\LeafletPHP\Encoder\VectorEncoder
tags: tags:
- { name: netzmacht.contao_leaflet_maps.encoder } - { name: netzmacht.contao_leaflet.encoder }
netzmacht.contao_leaflet_maps.encoder.ui: netzmacht.contao_leaflet.encoder.ui:
class: Netzmacht\LeafletPHP\Encoder\UIEncoder class: Netzmacht\LeafletPHP\Encoder\UIEncoder
tags: tags:
- { name: netzmacht.contao_leaflet_maps.encoder } - { name: netzmacht.contao_leaflet.encoder }
netzmacht.contao_leaflet_maps.encoder.type: netzmacht.contao_leaflet.encoder.type:
class: Netzmacht\LeafletPHP\Encoder\TypeEncoder class: Netzmacht\LeafletPHP\Encoder\TypeEncoder
tags: tags:
- { name: netzmacht.contao_leaflet_maps.encoder } - { name: netzmacht.contao_leaflet.encoder }
netzmacht.contao_leaflet_maps.encoder.subscriber: netzmacht.contao_leaflet.encoder.subscriber:
class: Netzmacht\Contao\Leaflet\Subscriber\EncoderSubscriber class: Netzmacht\Contao\Leaflet\Subscriber\EncoderSubscriber
tags: tags:
- { name: netzmacht.contao_leaflet_maps.encoder } - { name: netzmacht.contao_leaflet.encoder }

View File

@@ -1,11 +1,11 @@
services: services:
# Filters can be passed to a data request to get only specific data from a layer. # Filters can be passed to a data request to get only specific data from a layer.
netzmacht.contao_leaflet_maps.filter.bbox: netzmacht.contao_leaflet.filter.bbox:
class: Netzmacht\Contao\Leaflet\Filter\BboxFilter class: Netzmacht\Contao\Leaflet\Filter\BboxFilter
tags: tags:
- { name: 'netzmacht.contao_leaflet_maps.filter', alias: 'bbox' } - { name: 'netzmacht.contao_leaflet.filter', alias: 'bbox' }
netzmacht.contao_leaflet_maps.filter.distance: netzmacht.contao_leaflet.filter.distance:
class: Netzmacht\Contao\Leaflet\Filter\DistanceFilter class: Netzmacht\Contao\Leaflet\Filter\DistanceFilter
tags: tags:
- { name: 'netzmacht.contao_leaflet_maps.filter', alias: 'distance' } - { name: 'netzmacht.contao_leaflet.filter', alias: 'distance' }

View File

@@ -2,7 +2,7 @@
# #
# The type is used for the database driven definitions. # The type is used for the database driven definitions.
parameters: parameters:
netzmacht.contao_leaflet_maps.layers: netzmacht.contao_leaflet.layers:
provider: provider:
children: false children: false
icon: 'bundles/netzmachtcontaoleaflet/img/provider.png' icon: 'bundles/netzmachtcontaoleaflet/img/provider.png'
@@ -49,32 +49,32 @@ services:
_defaults: _defaults:
public: false public: false
netzmacht.contao_leaflet_maps.layer_label_renderer: netzmacht.contao_leaflet.layer_label_renderer:
class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\ChainRenderer class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\ChainRenderer
arguments: arguments:
- [] - []
netzmacht.contao_leaflet_maps.layer_label_renderer.markers: netzmacht.contao_leaflet.layer_label_renderer.markers:
class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\MarkersLabelRenderer class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\MarkersLabelRenderer
tags: tags:
- { name: 'netzmacht.contao_leaflet_maps.layer_label_renderer' } - { name: 'netzmacht.contao_leaflet.layer_label_renderer' }
netzmacht.contao_leaflet_maps.layer_label_renderer.overpass: netzmacht.contao_leaflet.layer_label_renderer.overpass:
class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\OverpassLabelRenderer class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\OverpassLabelRenderer
tags: tags:
- { name: 'netzmacht.contao_leaflet_maps.layer_label_renderer' } - { name: 'netzmacht.contao_leaflet.layer_label_renderer' }
netzmacht.contao_leaflet_maps.layer_label_renderer.provider: netzmacht.contao_leaflet.layer_label_renderer.provider:
class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\ProviderLabelRenderer class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\ProviderLabelRenderer
tags: tags:
- { name: 'netzmacht.contao_leaflet_maps.layer_label_renderer' } - { name: 'netzmacht.contao_leaflet.layer_label_renderer' }
netzmacht.contao_leaflet_maps.layer_label_renderer.reference: netzmacht.contao_leaflet.layer_label_renderer.reference:
class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\ReferenceLabelRenderer class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\ReferenceLabelRenderer
tags: tags:
- { name: 'netzmacht.contao_leaflet_maps.layer_label_renderer' } - { name: 'netzmacht.contao_leaflet.layer_label_renderer' }
netzmacht.contao_leaflet_maps.layer_label_renderer.vectors: netzmacht.contao_leaflet.layer_label_renderer.vectors:
class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\VectorsLabelRenderer class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\VectorsLabelRenderer
tags: tags:
- { name: 'netzmacht.contao_leaflet_maps.layer_label_renderer' } - { name: 'netzmacht.contao_leaflet.layer_label_renderer' }

View File

@@ -1,90 +1,90 @@
services: services:
netzmacht.contao_leaflet_maps.listeners.dca.leaflet: netzmacht.contao_leaflet.listeners.dca.leaflet:
class: Netzmacht\Contao\Leaflet\Listener\Dca\LeafletDcaListener class: Netzmacht\Contao\Leaflet\Listener\Dca\LeafletDcaListener
arguments: arguments:
- '@filesystem' - '@filesystem'
- '%netzmacht.contao_leaflet_maps.cache_dir%' - '%netzmacht.contao_leaflet.cache_dir%'
netzmacht.contao_leaflet_maps.listeners.dca.validator: netzmacht.contao_leaflet.listeners.dca.validator:
class: Netzmacht\Contao\Leaflet\Listener\Dca\Validator class: Netzmacht\Contao\Leaflet\Listener\Dca\Validator
arguments: arguments:
- '@netzmacht.contao_toolkit.dca.manager' - '@netzmacht.contao_toolkit.dca.manager'
- '@translator' - '@translator'
netzmacht.contao_leaflet_maps.listeners.dca.frontend_integration: netzmacht.contao_leaflet.listeners.dca.frontend_integration:
class: Netzmacht\Contao\Leaflet\Listener\Dca\FrontendIntegrationListener class: Netzmacht\Contao\Leaflet\Listener\Dca\FrontendIntegrationListener
arguments: arguments:
- '@translator' - '@translator'
netzmacht.contao_leaflet_maps.listeners.dca.map: netzmacht.contao_leaflet.listeners.dca.map:
class: Netzmacht\Contao\Leaflet\Listener\Dca\MapDcaListener class: Netzmacht\Contao\Leaflet\Listener\Dca\MapDcaListener
arguments: arguments:
- '@netzmacht.contao_toolkit.dca.manager' - '@netzmacht.contao_toolkit.dca.manager'
- '@database_connection' - '@database_connection'
netzmacht.contao_leaflet_maps.listeners.dca.control: netzmacht.contao_leaflet.listeners.dca.control:
class: Netzmacht\Contao\Leaflet\Listener\Dca\ControlDcaListener class: Netzmacht\Contao\Leaflet\Listener\Dca\ControlDcaListener
arguments: arguments:
- '@netzmacht.contao_toolkit.dca.manager' - '@netzmacht.contao_toolkit.dca.manager'
- '@database_connection' - '@database_connection'
- '%netzmacht.contao_leaflet_maps.controls%' - '%netzmacht.contao_leaflet.controls%'
netzmacht.contao_leaflet_maps.listeners.dca.layer: netzmacht.contao_leaflet.listeners.dca.layer:
class: Netzmacht\Contao\Leaflet\Listener\Dca\LayerDcaListener class: Netzmacht\Contao\Leaflet\Listener\Dca\LayerDcaListener
arguments: arguments:
- '@netzmacht.contao_toolkit.dca.manager' - '@netzmacht.contao_toolkit.dca.manager'
- '@database_connection' - '@database_connection'
- '@translator' - '@translator'
- '@netzmacht.contao_leaflet_maps.layer_label_renderer' - '@netzmacht.contao_leaflet.layer_label_renderer'
- '%netzmacht.contao_leaflet_maps.layers%' - '%netzmacht.contao_leaflet.layers%'
- '%netzmacht.contao_leaflet_maps.providers%' - '%netzmacht.contao_leaflet.providers%'
- '%netzmacht.contao_leaflet_maps.amenities%' - '%netzmacht.contao_leaflet.amenities%'
netzmacht.contao_leaflet_maps.listeners.dca.marker: netzmacht.contao_leaflet.listeners.dca.marker:
class: Netzmacht\Contao\Leaflet\Listener\Dca\MarkerDcaListener class: Netzmacht\Contao\Leaflet\Listener\Dca\MarkerDcaListener
arguments: arguments:
- '@database_connection' - '@database_connection'
netzmacht.contao_leaflet_maps.listeners.dca.vector: netzmacht.contao_leaflet.listeners.dca.vector:
class: Netzmacht\Contao\Leaflet\Listener\Dca\VectorDcaListener class: Netzmacht\Contao\Leaflet\Listener\Dca\VectorDcaListener
arguments: arguments:
- '@netzmacht.contao_toolkit.dca.manager' - '@netzmacht.contao_toolkit.dca.manager'
- '%netzmacht.contao_leaflet_maps.vectors%' - '%netzmacht.contao_leaflet.vectors%'
netzmacht.contao_leaflet_maps.listeners.dca.icon: netzmacht.contao_leaflet.listeners.dca.icon:
class: Netzmacht\Contao\Leaflet\Listener\Dca\IconDcaListener class: Netzmacht\Contao\Leaflet\Listener\Dca\IconDcaListener
arguments: arguments:
- '%netzmacht.contao_leaflet_maps.icons%' - '%netzmacht.contao_leaflet.icons%'
netzmacht.contao_leaflet_maps.listeners.dca.style: netzmacht.contao_leaflet.listeners.dca.style:
class: Netzmacht\Contao\Leaflet\Listener\Dca\IconDcaListener class: Netzmacht\Contao\Leaflet\Listener\Dca\IconDcaListener
arguments: arguments:
- '%netzmacht.contao_leaflet_maps.styles%' - '%netzmacht.contao_leaflet.styles%'
netzmacht.contao_leaflet_maps.listeners.geo_json_subscriber: netzmacht.contao_leaflet.listeners.geo_json_subscriber:
class: Netzmacht\Contao\Leaflet\Subscriber\GeoJsonSubscriber class: Netzmacht\Contao\Leaflet\Subscriber\GeoJsonSubscriber
arguments: arguments:
- '%netzmacht.contao_leaflet_maps.feature_model_properties%' - '%netzmacht.contao_leaflet.feature_model_properties%'
tags: tags:
- { name: 'kernel.event_subscriber' } - { name: 'kernel.event_subscriber' }
netzmacht.contao_leaflet_maps.listeners.hash_subscriber: netzmacht.contao_leaflet.listeners.hash_subscriber:
class: Netzmacht\Contao\Leaflet\Subscriber\HashSubscriber class: Netzmacht\Contao\Leaflet\Subscriber\HashSubscriber
tags: tags:
- { name: 'kernel.event_subscriber' } - { name: 'kernel.event_subscriber' }
netzmacht.contao_leaflet_maps.listeners.load_assets: netzmacht.contao_leaflet.listeners.load_assets:
class: Netzmacht\Contao\Leaflet\Listener\LoadAssetsListener class: Netzmacht\Contao\Leaflet\Listener\LoadAssetsListener
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.map.assets' - '@netzmacht.contao_leaflet.map.assets'
- '@netzmacht.contao_leaflet_maps.definition.mapper' - '@netzmacht.contao_leaflet.definition.mapper'
- '@netzmacht.contao_leaflet_maps.libraries' - '@netzmacht.contao_leaflet.libraries'
tags: tags:
- { name: 'kernel.event_listener', event: 'netzmacht.contao_leaflet.get_javascript', method: 'onGetJavascriptEvent' } - { name: 'kernel.event_listener', event: 'netzmacht.contao_leaflet.get_javascript', method: 'onGetJavascriptEvent' }
netzmacht.contao_leaflet_maps.listeners.register_libraries: netzmacht.contao_leaflet.listeners.register_libraries:
class: Netzmacht\Contao\Leaflet\Listener\RegisterLibrariesListener class: Netzmacht\Contao\Leaflet\Listener\RegisterLibrariesListener
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.libraries' - '@netzmacht.contao_leaflet.libraries'
- '@netzmacht.contao_leaflet_maps.definition.builder' - '@netzmacht.contao_leaflet.definition.builder'

View File

@@ -7,171 +7,171 @@ services:
# Map mapper # Map mapper
netzmacht.contao_leaflet_maps.mapper.map: netzmacht.contao_leaflet.mapper.map:
class: Netzmacht\Contao\Leaflet\Mapper\MapMapper class: Netzmacht\Contao\Leaflet\Mapper\MapMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
# Layer mappers # Layer mappers
netzmacht.contao_leaflet_maps.mapper.tile_layer: netzmacht.contao_leaflet.mapper.tile_layer:
class: Netzmacht\Contao\Leaflet\Mapper\Layer\TileLayerMapper class: Netzmacht\Contao\Leaflet\Mapper\Layer\TileLayerMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.provider_layer: netzmacht.contao_leaflet.mapper.provider_layer:
class: Netzmacht\Contao\Leaflet\Mapper\Layer\ProviderLayerMapper class: Netzmacht\Contao\Leaflet\Mapper\Layer\ProviderLayerMapper
arguments: arguments:
- '%netzmacht.contao_leaflet_maps.providers%' - '%netzmacht.contao_leaflet.providers%'
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.markers_layer: netzmacht.contao_leaflet.mapper.markers_layer:
class: Netzmacht\Contao\Leaflet\Mapper\Layer\MarkersLayerMapper class: Netzmacht\Contao\Leaflet\Mapper\Layer\MarkersLayerMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.group_layer: netzmacht.contao_leaflet.mapper.group_layer:
class: Netzmacht\Contao\Leaflet\Mapper\Layer\GroupLayerMapper class: Netzmacht\Contao\Leaflet\Mapper\Layer\GroupLayerMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.vectors_layer: netzmacht.contao_leaflet.mapper.vectors_layer:
class: Netzmacht\Contao\Leaflet\Mapper\Layer\VectorsLayerMapper class: Netzmacht\Contao\Leaflet\Mapper\Layer\VectorsLayerMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.reference_layer: netzmacht.contao_leaflet.mapper.reference_layer:
class: Netzmacht\Contao\Leaflet\Mapper\Layer\ReferenceLayerMapper class: Netzmacht\Contao\Leaflet\Mapper\Layer\ReferenceLayerMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.overpass_layer: netzmacht.contao_leaflet.mapper.overpass_layer:
class: Netzmacht\Contao\Leaflet\Mapper\Layer\OverpassLayerMapper class: Netzmacht\Contao\Leaflet\Mapper\Layer\OverpassLayerMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.marker_cluster_layer: netzmacht.contao_leaflet.mapper.marker_cluster_layer:
class: Netzmacht\Contao\Leaflet\Mapper\Layer\MarkerClusterLayerMapper class: Netzmacht\Contao\Leaflet\Mapper\Layer\MarkerClusterLayerMapper
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.map.assets' - '@netzmacht.contao_leaflet.map.assets'
tags: tags:
- { name: netzmacht.contao_leflet_maps.mapper } - { name: netzmacht.contao_leflet_maps.mapper }
# Control mappers # Control mappers
netzmacht.contao_leaflet_maps.mapper.zoom_control: netzmacht.contao_leaflet.mapper.zoom_control:
class: Netzmacht\Contao\Leaflet\Mapper\Control\ZoomControlMapper class: Netzmacht\Contao\Leaflet\Mapper\Control\ZoomControlMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.scale_control: netzmacht.contao_leaflet.mapper.scale_control:
class: Netzmacht\Contao\Leaflet\Mapper\Control\ScaleControlMapper class: Netzmacht\Contao\Leaflet\Mapper\Control\ScaleControlMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.layers_control: netzmacht.contao_leaflet.mapper.layers_control:
class: Netzmacht\Contao\Leaflet\Mapper\Control\LayersControlMapper class: Netzmacht\Contao\Leaflet\Mapper\Control\LayersControlMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.attribution_control: netzmacht.contao_leaflet.mapper.attribution_control:
class: Netzmacht\Contao\Leaflet\Mapper\Control\AttributionControlMapper class: Netzmacht\Contao\Leaflet\Mapper\Control\AttributionControlMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.loading_control: netzmacht.contao_leaflet.mapper.loading_control:
class: Netzmacht\Contao\Leaflet\Mapper\Control\LoadingControlMapper class: Netzmacht\Contao\Leaflet\Mapper\Control\LoadingControlMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.fullscreen_control: netzmacht.contao_leaflet.mapper.fullscreen_control:
class: Netzmacht\Contao\Leaflet\Mapper\Control\FullscreenControlMapper class: Netzmacht\Contao\Leaflet\Mapper\Control\FullscreenControlMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
# Vector mappers # Vector mappers
netzmacht.contao_leaflet_maps.mapper.polyline: netzmacht.contao_leaflet.mapper.polyline:
class: Netzmacht\Contao\Leaflet\Mapper\Vector\PolylineMapper class: Netzmacht\Contao\Leaflet\Mapper\Vector\PolylineMapper
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.frontend.value_filter' - '@netzmacht.contao_leaflet.frontend.value_filter'
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.multi_polyline: netzmacht.contao_leaflet.mapper.multi_polyline:
class: Netzmacht\Contao\Leaflet\Mapper\Vector\MultiPolylineMapper class: Netzmacht\Contao\Leaflet\Mapper\Vector\MultiPolylineMapper
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.frontend.value_filter' - '@netzmacht.contao_leaflet.frontend.value_filter'
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.polygon: netzmacht.contao_leaflet.mapper.polygon:
class: Netzmacht\Contao\Leaflet\Mapper\Vector\PolygonMapper class: Netzmacht\Contao\Leaflet\Mapper\Vector\PolygonMapper
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.frontend.value_filter' - '@netzmacht.contao_leaflet.frontend.value_filter'
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.multi_polygon: netzmacht.contao_leaflet.mapper.multi_polygon:
class: Netzmacht\Contao\Leaflet\Mapper\Vector\MultiPolygonMapper class: Netzmacht\Contao\Leaflet\Mapper\Vector\MultiPolygonMapper
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.frontend.value_filter' - '@netzmacht.contao_leaflet.frontend.value_filter'
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.circle: netzmacht.contao_leaflet.mapper.circle:
class: Netzmacht\Contao\Leaflet\Mapper\Vector\CircleMapper class: Netzmacht\Contao\Leaflet\Mapper\Vector\CircleMapper
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.frontend.value_filter' - '@netzmacht.contao_leaflet.frontend.value_filter'
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.circle_mapper: netzmacht.contao_leaflet.mapper.circle_mapper:
class: Netzmacht\Contao\Leaflet\Mapper\Vector\CircleMarkerMapper class: Netzmacht\Contao\Leaflet\Mapper\Vector\CircleMarkerMapper
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.frontend.value_filter' - '@netzmacht.contao_leaflet.frontend.value_filter'
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.rectangle_mapper: netzmacht.contao_leaflet.mapper.rectangle_mapper:
class: Netzmacht\Contao\Leaflet\Mapper\Vector\RectangleMapper class: Netzmacht\Contao\Leaflet\Mapper\Vector\RectangleMapper
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.frontend.value_filter' - '@netzmacht.contao_leaflet.frontend.value_filter'
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
# Miscellaneous mappers # Miscellaneous mappers
netzmacht.contao_leaflet_maps.mapper.popup: netzmacht.contao_leaflet.mapper.popup:
class: Netzmacht\Contao\Leaflet\Mapper\UI\PopupMapper class: Netzmacht\Contao\Leaflet\Mapper\UI\PopupMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.image_icon: netzmacht.contao_leaflet.mapper.image_icon:
class: Netzmacht\Contao\Leaflet\Mapper\Type\ImageIconMapper class: Netzmacht\Contao\Leaflet\Mapper\Type\ImageIconMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.div_icon: netzmacht.contao_leaflet.mapper.div_icon:
class: Netzmacht\Contao\Leaflet\Mapper\Type\DivIconMapper class: Netzmacht\Contao\Leaflet\Mapper\Type\DivIconMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.extra_markers: netzmacht.contao_leaflet.mapper.extra_markers:
class: Netzmacht\Contao\Leaflet\Mapper\Type\ExtraMarkersIconMapper class: Netzmacht\Contao\Leaflet\Mapper\Type\ExtraMarkersIconMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.fixed_style: netzmacht.contao_leaflet.mapper.fixed_style:
class: Netzmacht\Contao\Leaflet\Mapper\Style\FixedStyleMapper class: Netzmacht\Contao\Leaflet\Mapper\Style\FixedStyleMapper
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }
netzmacht.contao_leaflet_maps.mapper.marker: netzmacht.contao_leaflet.mapper.marker:
class: Netzmacht\Contao\Leaflet\Mapper\UI\MarkerMapper class: Netzmacht\Contao\Leaflet\Mapper\UI\MarkerMapper
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.frontend.value_filter' - '@netzmacht.contao_leaflet.frontend.value_filter'
tags: tags:
- { name: netzmacht.contao_leaflet_maps.mapper } - { name: netzmacht.contao_leaflet.mapper }

View File

@@ -1,5 +1,5 @@
parameters: parameters:
netzmacht.contao_leaflet_maps.providers: netzmacht.contao_leaflet.providers:
OpenStreetMap: OpenStreetMap:
variants: ['Mapnik', 'BlackAndWhite', 'DE', 'France', 'HOT', 'BZH'] variants: ['Mapnik', 'BlackAndWhite', 'DE', 'France', 'HOT', 'BZH']

View File

@@ -1,83 +1,83 @@
parameters: parameters:
netzmacht.contao_leaflet_maps.cache_dir: '%kernel.cache_dir%/leaflet' netzmacht.contao_leaflet.cache_dir: '%kernel.cache_dir%/leaflet'
# JSON_UNESCAPED_SLASHES ^ Netzmacht\JavascriptBuilder\Flags::BUILD_STACK # JSON_UNESCAPED_SLASHES ^ Netzmacht\JavascriptBuilder\Flags::BUILD_STACK
netzmacht.contao_leaflet_maps.encoding_flags: 16448 netzmacht.contao_leaflet.encoding_flags: 16448
services: services:
netzmacht.contao_leaflet_maps.map.provider: netzmacht.contao_leaflet.map.provider:
class: Netzmacht\Contao\Leaflet\MapProvider class: Netzmacht\Contao\Leaflet\MapProvider
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.definition.mapper' - '@netzmacht.contao_leaflet.definition.mapper'
- '@netzmacht.contao_leaflet_maps.definition.builder' - '@netzmacht.contao_leaflet.definition.builder'
- '@event_dispatcher' - '@event_dispatcher'
- '@netzmacht.contao_toolkit.contao.input' - '@netzmacht.contao_toolkit.contao.input'
- '@netzmacht.contao_leaflet_maps.map.assets' - '@netzmacht.contao_leaflet.map.assets'
- '@netzmacht.contao_leaflet_maps.cache' - '@netzmacht.contao_leaflet.cache'
- [] # TODO: Rework filter handling. - [] # TODO: Rework filter handling.
- '%kernel.debug%' - '%kernel.debug%'
netzmacht.contao_leaflet_maps.libraries: netzmacht.contao_leaflet.libraries:
class: Netzmacht\Contao\Leaflet\Frontend\Assets\LibrariesConfiguration class: Netzmacht\Contao\Leaflet\Frontend\Assets\LibrariesConfiguration
arguments: arguments:
- '@contao.framework' - '@contao.framework'
netzmacht.contao_leaflet_maps.cache: netzmacht.contao_leaflet.cache:
alias: 'netzmacht.contao_leaflet_maps.cache.default' alias: 'netzmacht.contao_leaflet.cache.default'
netzmacht.contao_leaflet_maps.cache.default: netzmacht.contao_leaflet.cache.default:
class: Doctrine\Common\Cache\FilesystemCache class: Doctrine\Common\Cache\FilesystemCache
arguments: arguments:
- '%netzmacht.contao_leaflet_maps.cache_dir%' - '%netzmacht.contao_leaflet.cache_dir%'
netzmacht.contao_leaflet_maps.cache.debug: netzmacht.contao_leaflet.cache.debug:
class: Doctrine\Common\Cache\ArrayCache class: Doctrine\Common\Cache\ArrayCache
netzmacht.contao_leaflet_maps.frontend.value_filter: netzmacht.contao_leaflet.frontend.value_filter:
class: Netzmacht\Contao\Leaflet\Frontend\ValueFilter class: Netzmacht\Contao\Leaflet\Frontend\ValueFilter
netzmacht.contao_leaflet_maps.map.assets: netzmacht.contao_leaflet.map.assets:
class: Netzmacht\Contao\Leaflet\ContaoAssets class: Netzmacht\Contao\Leaflet\ContaoAssets
arguments: arguments:
- '@netzmacht.contao_toolkit.assets_manager' - '@netzmacht.contao_toolkit.assets_manager'
netzmacht.contao_leaflet_maps.definition.builder: netzmacht.contao_leaflet.definition.builder:
class: Netzmacht\LeafletPHP\Leaflet class: Netzmacht\LeafletPHP\Leaflet
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.definition.builder.javascript_builder' - '@netzmacht.contao_leaflet.definition.builder.javascript_builder'
- '@netzmacht.contao_leaflet_maps.definition.builder.event_dispatcher' - '@netzmacht.contao_leaflet.definition.builder.event_dispatcher'
- [] - []
- '%netzmacht.contao_leaflet_maps.encoding_flags%' - '%netzmacht.contao_leaflet.encoding_flags%'
netzmacht.contao_leaflet_maps.definition.builder.javascript_builder: netzmacht.contao_leaflet.definition.builder.javascript_builder:
class: Netzmacht\JavascriptBuilder\Builder class: Netzmacht\JavascriptBuilder\Builder
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.definition.encoder_factory' - '@netzmacht.contao_leaflet.definition.encoder_factory'
netzmacht.contao_leaflet_maps.definition.builder.event_dispatcher: netzmacht.contao_leaflet.definition.builder.event_dispatcher:
class: Symfony\Component\EventDispatcher\EventDispatcher class: Symfony\Component\EventDispatcher\EventDispatcher
netzmacht.contao_leaflet_maps.definition.mapper: netzmacht.contao_leaflet.definition.mapper:
class: Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper class: Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper
arguments: arguments:
- '@event_dispatcher' - '@event_dispatcher'
netzmacht.contao_leaflet_maps.definition.encoder_factory: netzmacht.contao_leaflet.definition.encoder_factory:
class: Netzmacht\Contao\Leaflet\Encoder\EncoderFactory class: Netzmacht\Contao\Leaflet\Encoder\EncoderFactory
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.definition.builder.event_dispatcher' - '@netzmacht.contao_leaflet.definition.builder.event_dispatcher'
netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default: netzmacht.contao_leaflet.definition.alias_generator.factory_default:
class: Netzmacht\Contao\Leaflet\Alias\DefaultAliasGeneratorFactory class: Netzmacht\Contao\Leaflet\Alias\DefaultAliasGeneratorFactory
arguments: arguments:
- '@database_connection' - '@database_connection'
netzmacht.contao_leaflet_maps.definition.alias_generator.factory_parent: netzmacht.contao_leaflet.definition.alias_generator.factory_parent:
class: Netzmacht\Contao\Leaflet\Alias\ParentAliasGeneratorFactory class: Netzmacht\Contao\Leaflet\Alias\ParentAliasGeneratorFactory
arguments: arguments:
- '@database_connection' - '@database_connection'
netzmacht.contao_leaflet_maps.frontend.element_factory: netzmacht.contao_leaflet.frontend.element_factory:
class: Netzmacht\Contao\Leaflet\Frontend\ContentElement\MapElementFactory class: Netzmacht\Contao\Leaflet\Frontend\ContentElement\MapElementFactory
arguments: arguments:
- '@service_container' - '@service_container'
@@ -85,7 +85,7 @@ services:
- { name: 'netzmacht.contao_toolkit.component.content_element_factory' } - { name: 'netzmacht.contao_toolkit.component.content_element_factory' }
- { name: 'netzmacht.contao_toolkit.component.content_element', alias: 'leaflet', category: 'include' } - { name: 'netzmacht.contao_toolkit.component.content_element', alias: 'leaflet', category: 'include' }
netzmacht.contao_leaflet_maps.frontend.module_factory: netzmacht.contao_leaflet.frontend.module_factory:
class: Netzmacht\Contao\Leaflet\Frontend\Module\MapModuleFactory class: Netzmacht\Contao\Leaflet\Frontend\Module\MapModuleFactory
arguments: arguments:
- '@service_container' - '@service_container'
@@ -93,10 +93,10 @@ services:
- { name: 'netzmacht.contao_toolkit.component.frontend_module_factory' } - { name: 'netzmacht.contao_toolkit.component.frontend_module_factory' }
- { name: 'netzmacht.contao_toolkit.component.frontend_module', alias: 'leaflet', category: include } - { name: 'netzmacht.contao_toolkit.component.frontend_module', alias: 'leaflet', category: include }
netzmacht.contao_leaflet_maps.frontend.insert_tag: netzmacht.contao_leaflet.frontend.insert_tag:
class: Netzmacht\Contao\Leaflet\Frontend\InsertTag\LeafletInsertTagParser class: Netzmacht\Contao\Leaflet\Frontend\InsertTag\LeafletInsertTagParser
arguments: arguments:
- '@netzmacht.contao_leaflet_maps.map.provider' - '@netzmacht.contao_leaflet.map.provider'
- '%kernel.debug%' - '%kernel.debug%'
tags: tags:
- { name: 'contao.hook', hook: 'replaceInsertTags', method: 'replace' } - { name: 'contao.hook', hook: 'replaceInsertTags', method: 'replace' }

View File

@@ -72,6 +72,6 @@ $GLOBALS['TL_MODELS']['tl_leaflet_vector'] = \Netzmacht\Contao\Leaflet\Model\Ve
*/ */
$GLOBALS['TL_HOOKS']['initializeSystem'][] = [ $GLOBALS['TL_HOOKS']['initializeSystem'][] = [
'netzmacht.contao_leaflet_maps.listeners.register_libraries', 'netzmacht.contao_leaflet.listeners.register_libraries',
'onInitializeSystem' 'onInitializeSystem'
]; ];

View File

@@ -23,9 +23,9 @@ $GLOBALS['TL_DCA']['tl_content']['fields']['leaflet_map'] = [
'label' => &$GLOBALS['TL_LANG']['tl_content']['leaflet_map'], 'label' => &$GLOBALS['TL_LANG']['tl_content']['leaflet_map'],
'inputType' => 'select', 'inputType' => 'select',
'exclude' => true, 'exclude' => true,
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.frontend_integration', 'getMaps'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.frontend_integration', 'getMaps'],
'wizard' => [ 'wizard' => [
['netzmacht.contao_leaflet_maps.listeners.dca.frontend_integration', 'getEditMapLink'], ['netzmacht.contao_leaflet.listeners.dca.frontend_integration', 'getEditMapLink'],
], ],
'eval' => [ 'eval' => [
'tl_class' => 'w50 wizard', 'tl_class' => 'w50 wizard',

View File

@@ -22,10 +22,10 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = [
], ],
], ],
'onload_callback' => [ 'onload_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'loadLanguageFile'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'loadLanguageFile'],
], ],
'onsubmit_callback' => [ 'onsubmit_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
@@ -38,7 +38,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = [
'flag' => 1, 'flag' => 1,
'sorting' => 2, 'sorting' => 2,
'panelLayout' => 'filter,sort;search,limit', 'panelLayout' => 'filter,sort;search,limit',
'child_record_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.control', 'generateRow'], 'child_record_callback' => ['netzmacht.contao_leaflet.listeners.dca.control', 'generateRow'],
], ],
'label' => [ 'label' => [
'fields' => ['title'], 'fields' => ['title'],
@@ -157,7 +157,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = [
'search' => true, 'search' => true,
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'], ['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateAlias'],
], ],
'eval' => [ 'eval' => [
'mandatory' => false, 'mandatory' => false,
@@ -167,7 +167,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = [
], ],
'toolkit' => [ 'toolkit' => [
'alias_generator' => [ 'alias_generator' => [
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_parent', 'factory' => 'netzmacht.contao_leaflet.definition.alias_generator.factory_parent',
'fields' => ['title'], 'fields' => ['title'],
], ],
], ],
@@ -187,7 +187,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = [
'chosen' => true, 'chosen' => true,
'helpwizard' => true, 'helpwizard' => true,
], ],
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.control', 'getControlTypes'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.control', 'getControlTypes'],
'reference' => &$GLOBALS['TL_LANG']['leaflet_control'], 'reference' => &$GLOBALS['TL_LANG']['leaflet_control'],
'sql' => "varchar(32) NOT NULL default ''", 'sql' => "varchar(32) NOT NULL default ''",
], ],
@@ -210,7 +210,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = [
'eval' => ['tl_class' => 'w50'], 'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''", 'sql' => "char(1) NOT NULL default ''",
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
'zoomInText' => [ 'zoomInText' => [
@@ -262,10 +262,10 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = [
'exclude' => true, 'exclude' => true,
'inputType' => 'multiColumnWizard', 'inputType' => 'multiColumnWizard',
'load_callback' => [ 'load_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.control', 'loadLayerRelations'], ['netzmacht.contao_leaflet.listeners.dca.control', 'loadLayerRelations'],
], ],
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.control', 'saveLayerRelations'], ['netzmacht.contao_leaflet.listeners.dca.control', 'saveLayerRelations'],
], ],
'eval' => [ 'eval' => [
'tl_class' => 'clr', 'tl_class' => 'clr',
@@ -274,7 +274,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['layer'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['layer'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.control', 'getLayers'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.control', 'getLayers'],
'eval' => [ 'eval' => [
'style' => 'width: 300px', 'style' => 'width: 300px',
'chosen' => true, 'chosen' => true,
@@ -352,7 +352,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['zoomControl'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['zoomControl'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.control', 'getZoomControls'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.control', 'getZoomControls'],
'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_control'], 'reference' => &$GLOBALS['TL_LANG']['tl_leaflet_control'],
'eval' => [ 'eval' => [
'mandatory' => false, 'mandatory' => false,

View File

@@ -21,7 +21,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = [
], ],
], ],
'onsubmit_callback' => [ 'onsubmit_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
@@ -177,12 +177,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = [
'inputType' => 'text', 'inputType' => 'text',
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'], ['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateAlias'],
], ],
'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true], 'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true],
'toolkit' => [ 'toolkit' => [
'alias_generator' => [ 'alias_generator' => [
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default', 'factory' => 'netzmacht.contao_leaflet.definition.alias_generator.factory_default',
'fields' => ['title'], 'fields' => ['title'],
], ],
], ],
@@ -199,7 +199,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = [
'submitOnChange' => true, 'submitOnChange' => true,
'chosen' => true, 'chosen' => true,
], ],
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.icon', 'getIconOptions'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.icon', 'getIconOptions'],
'reference' => &$GLOBALS['TL_LANG']['leaflet_icon'], 'reference' => &$GLOBALS['TL_LANG']['leaflet_icon'],
'sql' => "varchar(32) NOT NULL default ''", 'sql' => "varchar(32) NOT NULL default ''",
], ],
@@ -210,7 +210,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = [
'eval' => ['tl_class' => 'w50'], 'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''", 'sql' => "char(1) NOT NULL default ''",
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
'iconImage' => [ 'iconImage' => [
@@ -270,7 +270,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = [
'exclude' => true, 'exclude' => true,
'inputType' => 'text', 'inputType' => 'text',
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateCoordinates'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateCoordinates'],
], ],
'eval' => [ 'eval' => [
'maxlength' => 255, 'maxlength' => 255,
@@ -284,7 +284,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = [
'exclude' => true, 'exclude' => true,
'inputType' => 'text', 'inputType' => 'text',
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateCoordinates'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateCoordinates'],
], ],
'eval' => [ 'eval' => [
'maxlength' => 255, 'maxlength' => 255,
@@ -298,7 +298,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_icon'] = [
'exclude' => true, 'exclude' => true,
'inputType' => 'text', 'inputType' => 'text',
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateCoordinates'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateCoordinates'],
], ],
'eval' => [ 'eval' => [
'maxlength' => 255, 'maxlength' => 255,

View File

@@ -16,7 +16,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'enableVersioning' => true, 'enableVersioning' => true,
'ctable' => ['tl_leaflet_vector', 'tl_leaflet_marker'], 'ctable' => ['tl_leaflet_vector', 'tl_leaflet_marker'],
'ondelete_callback' => [ 'ondelete_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'deleteRelations'], ['netzmacht.contao_leaflet.listeners.dca.layer', 'deleteRelations'],
], ],
'sql' => [ 'sql' => [
'keys' => [ 'keys' => [
@@ -26,10 +26,10 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
], ],
], ],
'onload_callback' => [ 'onload_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'loadLanguageFile'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'loadLanguageFile'],
], ],
'onsubmit_callback' => [ 'onsubmit_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
'list' => [ 'list' => [
@@ -39,12 +39,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'flag' => 1, 'flag' => 1,
'icon' => 'bundles/netzmachtcontaoleaflet/img/layers.png', 'icon' => 'bundles/netzmachtcontaoleaflet/img/layers.png',
'panelLayout' => 'filter;search,limit', 'panelLayout' => 'filter;search,limit',
'paste_button_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'getPasteButtons'], 'paste_button_callback' => ['netzmacht.contao_leaflet.listeners.dca.layer', 'getPasteButtons'],
], ],
'label' => [ 'label' => [
'fields' => ['title'], 'fields' => ['title'],
'format' => '%s', 'format' => '%s',
'label_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'generateRow'], 'label_callback' => ['netzmacht.contao_leaflet.listeners.dca.layer', 'generateRow'],
], ],
'global_operations' => [ 'global_operations' => [
'styles' => [ 'styles' => [
@@ -77,13 +77,13 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['markers'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['markers'],
'href' => 'table=tl_leaflet_marker', 'href' => 'table=tl_leaflet_marker',
'icon' => 'edit.gif', 'icon' => 'edit.gif',
'button_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'generateMarkersButton'], 'button_callback' => ['netzmacht.contao_leaflet.listeners.dca.layer', 'generateMarkersButton'],
], ],
'vectors' => [ 'vectors' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['vectors'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['vectors'],
'href' => 'table=tl_leaflet_vector', 'href' => 'table=tl_leaflet_vector',
'icon' => 'edit.gif', 'icon' => 'edit.gif',
'button_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'generateVectorsButton'], 'button_callback' => ['netzmacht.contao_leaflet.listeners.dca.layer', 'generateVectorsButton'],
], ],
'edit' => [ 'edit' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['edit'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['edit'],
@@ -262,12 +262,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'search' => true, 'search' => true,
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'], ['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateAlias'],
], ],
'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true], 'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true],
'toolkit' => [ 'toolkit' => [
'alias_generator' => [ 'alias_generator' => [
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default', 'factory' => 'netzmacht.contao_leaflet.definition.alias_generator.factory_default',
'fields' => ['title'], 'fields' => ['title'],
], ],
], ],
@@ -286,7 +286,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'chosen' => true, 'chosen' => true,
'helpwizard' => true, 'helpwizard' => true,
], ],
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'getLayerOptions'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.layer', 'getLayerOptions'],
'reference' => &$GLOBALS['TL_LANG']['leaflet_layer'], 'reference' => &$GLOBALS['TL_LANG']['leaflet_layer'],
'sql' => "varchar(32) NOT NULL default ''", 'sql' => "varchar(32) NOT NULL default ''",
], ],
@@ -298,7 +298,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'eval' => ['tl_class' => 'w50'], 'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''", 'sql' => "char(1) NOT NULL default ''",
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
'tile_provider' => [ 'tile_provider' => [
@@ -312,7 +312,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'submitOnChange' => true, 'submitOnChange' => true,
'chosen' => true, 'chosen' => true,
], ],
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'getProviderOptions'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.layer', 'getProviderOptions'],
'sql' => "varchar(32) NOT NULL default ''", 'sql' => "varchar(32) NOT NULL default ''",
], ],
'tile_provider_variant' => [ 'tile_provider_variant' => [
@@ -325,7 +325,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'submitOnChange' => true, 'submitOnChange' => true,
'chosen' => false, 'chosen' => false,
], ],
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'getVariants'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.layer', 'getVariants'],
'sql' => "varchar(32) NOT NULL default ''", 'sql' => "varchar(32) NOT NULL default ''",
], ],
'tile_provider_key' => [ 'tile_provider_key' => [
@@ -369,7 +369,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['reference'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['reference'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'getLayers'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.layer', 'getLayers'],
'eval' => [ 'eval' => [
'mandatory' => true, 'mandatory' => true,
'tl_class' => 'w50', 'tl_class' => 'w50',
@@ -456,7 +456,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['disableClusteringAtZoom'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['disableClusteringAtZoom'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'getZoomLevels'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getZoomLevels'],
'default' => null, 'default' => null,
'eval' => [ 'eval' => [
'maxlength' => 4, 'maxlength' => 4,
@@ -529,7 +529,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['boundsMode'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['boundsMode'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'getBoundsModes'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.layer', 'getBoundsModes'],
'eval' => ['tl_class' => 'w50', 'includeBlankOption' => true], 'eval' => ['tl_class' => 'w50', 'includeBlankOption' => true],
'sql' => "varchar(6) NOT NULL default ''", 'sql' => "varchar(6) NOT NULL default ''",
], ],
@@ -545,7 +545,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['minZoom'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['minZoom'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'getZoomLevels'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getZoomLevels'],
'eval' => [ 'eval' => [
'maxlength' => 4, 'maxlength' => 4,
'rgxp' => 'digit', 'rgxp' => 'digit',
@@ -559,7 +559,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxZoom'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxZoom'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'getZoomLevels'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getZoomLevels'],
'eval' => [ 'eval' => [
'maxlength' => 4, 'maxlength' => 4,
'rgxp' => 'digit', 'rgxp' => 'digit',
@@ -573,7 +573,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxNativeZoom'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['maxNativeZoom'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'getZoomLevels'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getZoomLevels'],
'eval' => [ 'eval' => [
'maxlength' => 4, 'maxlength' => 4,
'rgxp' => 'digit', 'rgxp' => 'digit',
@@ -807,14 +807,14 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['amenityIcons'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['amenityIcons'],
'exclude' => true, 'exclude' => true,
'inputType' => 'multiColumnWizard', 'inputType' => 'multiColumnWizard',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'getIcons'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.layer', 'getIcons'],
'eval' => [ 'eval' => [
'columnFields' => [ 'columnFields' => [
'amenity' => [ 'amenity' => [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['amenity'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['amenity'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'getAmenities'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.layer', 'getAmenities'],
'eval' => [ 'eval' => [
'mandatory' => true, 'mandatory' => true,
'tl_class' => 'w50', 'tl_class' => 'w50',
@@ -826,7 +826,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['amenityIcon'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['amenityIcon'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.layer', 'getIcons'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.layer', 'getIcons'],
'eval' => [ 'eval' => [
'mandatory' => true, 'mandatory' => true,
'tl_class' => 'w50', 'tl_class' => 'w50',

View File

@@ -22,10 +22,10 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = [
], ],
], ],
'onload_callback' => [ 'onload_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'loadLanguageFile'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'loadLanguageFile'],
], ],
'onsubmit_callback' => [ 'onsubmit_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
@@ -154,12 +154,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = [
'search' => true, 'search' => true,
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'], ['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateAlias'],
], ],
'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true], 'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true],
'toolkit' => [ 'toolkit' => [
'alias_generator' => [ 'alias_generator' => [
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default', 'factory' => 'netzmacht.contao_leaflet.definition.alias_generator.factory_default',
'fields' => ['title'], 'fields' => ['title'],
], ],
], ],
@@ -170,10 +170,10 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = [
'exclude' => true, 'exclude' => true,
'inputType' => 'text', 'inputType' => 'text',
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateCoordinates'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateCoordinates'],
], ],
'wizard' => [ 'wizard' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'getGeocoder'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getGeocoder'],
], ],
'eval' => [ 'eval' => [
'maxlength' => 255, 'maxlength' => 255,
@@ -187,10 +187,10 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = [
'exclude' => true, 'exclude' => true,
'inputType' => 'multiColumnWizard', 'inputType' => 'multiColumnWizard',
'load_callback' => [ 'load_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.map', 'loadLayerRelations'], ['netzmacht.contao_leaflet.listeners.dca.map', 'loadLayerRelations'],
], ],
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.map', 'saveLayerRelations'], ['netzmacht.contao_leaflet.listeners.dca.map', 'saveLayerRelations'],
], ],
'eval' => [ 'eval' => [
'multiple' => true, 'multiple' => true,
@@ -200,7 +200,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['reference'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['reference'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.map', 'getLayers'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.map', 'getLayers'],
'eval' => [ 'eval' => [
'mandatory' => false, 'mandatory' => false,
'tl_class' => 'w50', 'tl_class' => 'w50',
@@ -219,7 +219,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoom'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zoom'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'getZoomLevels'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getZoomLevels'],
'default' => null, 'default' => null,
'eval' => [ 'eval' => [
'maxlength' => 4, 'maxlength' => 4,
@@ -242,7 +242,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['minZoom'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['minZoom'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'getZoomLevels'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getZoomLevels'],
'eval' => [ 'eval' => [
'maxlength' => 4, 'maxlength' => 4,
'rgxp' => 'digit', 'rgxp' => 'digit',
@@ -256,7 +256,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['maxZoom'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['maxZoom'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'getZoomLevels'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getZoomLevels'],
'eval' => [ 'eval' => [
'maxlength' => 4, 'maxlength' => 4,
'rgxp' => 'digit', 'rgxp' => 'digit',
@@ -503,7 +503,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaxZoom'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['locateMaxZoom'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'getZoomLevels'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getZoomLevels'],
'eval' => [ 'eval' => [
'maxlength' => 4, 'maxlength' => 4,
'rgxp' => 'digit', 'rgxp' => 'digit',

View File

@@ -23,10 +23,10 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = [
], ],
], ],
'onload_callback' => [ 'onload_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.marker', 'initialize'], ['netzmacht.contao_leaflet.listeners.dca.marker', 'initialize'],
], ],
'onsubmit_callback' => [ 'onsubmit_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
@@ -37,7 +37,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = [
'flag' => 1, 'flag' => 1,
'panelLayout' => 'sort,filter;search,limit', 'panelLayout' => 'sort,filter;search,limit',
'headerFields' => ['title', 'type'], 'headerFields' => ['title', 'type'],
'child_record_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.marker', 'generateRow'], 'child_record_callback' => ['netzmacht.contao_leaflet.listeners.dca.marker', 'generateRow'],
], ],
'label' => [ 'label' => [
'fields' => ['title'], 'fields' => ['title'],
@@ -158,12 +158,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = [
'search' => true, 'search' => true,
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'], ['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateAlias'],
], ],
'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true], 'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true],
'toolkit' => [ 'toolkit' => [
'alias_generator' => [ 'alias_generator' => [
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default', 'factory' => 'netzmacht.contao_leaflet.definition.alias_generator.factory_default',
'fields' => ['title'], 'fields' => ['title'],
], ],
], ],
@@ -174,14 +174,14 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = [
'exclude' => true, 'exclude' => true,
'inputType' => 'text', 'inputType' => 'text',
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateCoordinates'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateCoordinates'],
['netzmacht.contao_leaflet_maps.listeners.dca.marker', 'saveCoordinates'], ['netzmacht.contao_leaflet.listeners.dca.marker', 'saveCoordinates'],
], ],
'load_callback' => [ 'load_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.marker', 'loadCoordinates'], ['netzmacht.contao_leaflet.listeners.dca.marker', 'loadCoordinates'],
], ],
'wizard' => [ 'wizard' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'getGeocoder'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getGeocoder'],
], ],
'eval' => [ 'eval' => [
'maxlength' => 255, 'maxlength' => 255,
@@ -221,7 +221,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = [
'eval' => ['tl_class' => 'w50'], 'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''", 'sql' => "char(1) NOT NULL default ''",
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
'tooltip' => [ 'tooltip' => [
@@ -250,7 +250,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['popup'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['popup'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.marker', 'getPopups'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.marker', 'getPopups'],
'eval' => [ 'eval' => [
'mandatory' => false, 'mandatory' => false,
'tl_class' => 'w50', 'tl_class' => 'w50',
@@ -278,7 +278,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['icon'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['icon'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.marker', 'getIcons'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.marker', 'getIcons'],
'eval' => [ 'eval' => [
'mandatory' => true, 'mandatory' => true,
'tl_class' => 'w50', 'tl_class' => 'w50',

View File

@@ -21,7 +21,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = [
], ],
], ],
'onsubmit_callback' => [ 'onsubmit_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
@@ -149,12 +149,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = [
'inputType' => 'text', 'inputType' => 'text',
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'], ['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateAlias'],
], ],
'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true], 'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true],
'toolkit' => [ 'toolkit' => [
'alias_generator' => [ 'alias_generator' => [
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default', 'factory' => 'netzmacht.contao_leaflet.definition.alias_generator.factory_default',
'fields' => ['title'], 'fields' => ['title'],
], ],
], ],
@@ -213,7 +213,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = [
'exclude' => true, 'exclude' => true,
'inputType' => 'text', 'inputType' => 'text',
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateCoordinates'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateCoordinates'],
], ],
'eval' => [ 'eval' => [
'maxlength' => 255, 'maxlength' => 255,
@@ -269,7 +269,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_popup'] = [
'eval' => ['tl_class' => 'w50'], 'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''", 'sql' => "char(1) NOT NULL default ''",
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
], ],

View File

@@ -21,7 +21,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = [
], ],
], ],
'onsubmit_callback' => [ 'onsubmit_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
@@ -143,12 +143,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = [
'inputType' => 'text', 'inputType' => 'text',
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'], ['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateAlias'],
], ],
'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true], 'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true],
'toolkit' => [ 'toolkit' => [
'alias_generator' => [ 'alias_generator' => [
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default', 'factory' => 'netzmacht.contao_leaflet.definition.alias_generator.factory_default',
'fields' => ['title'], 'fields' => ['title'],
], ],
], ],
@@ -165,7 +165,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = [
'submitOnChange' => true, 'submitOnChange' => true,
'chosen' => true, 'chosen' => true,
], ],
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.style', 'getStyleOptions'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.style', 'getStyleOptions'],
'reference' => &$GLOBALS['TL_LANG']['leaflet_style'], 'reference' => &$GLOBALS['TL_LANG']['leaflet_style'],
'sql' => "varchar(32) NOT NULL default ''", 'sql' => "varchar(32) NOT NULL default ''",
], ],
@@ -277,7 +277,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_style'] = [
'eval' => ['tl_class' => 'w50'], 'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''", 'sql' => "char(1) NOT NULL default ''",
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
], ],

View File

@@ -23,10 +23,10 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = [
], ],
], ],
'onload_callback' => [ 'onload_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'loadLanguageFile'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'loadLanguageFile'],
], ],
'onsubmit_callback' => [ 'onsubmit_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
@@ -37,7 +37,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = [
'flag' => 1, 'flag' => 1,
'panelLayout' => 'sort,filter;search,limit', 'panelLayout' => 'sort,filter;search,limit',
'headerFields' => ['title', 'type'], 'headerFields' => ['title', 'type'],
'child_record_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.vector', 'generateRow'], 'child_record_callback' => ['netzmacht.contao_leaflet.listeners.dca.vector', 'generateRow'],
], ],
'label' => [ 'label' => [
'fields' => ['title'], 'fields' => ['title'],
@@ -183,12 +183,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = [
'search' => true, 'search' => true,
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'], ['netzmacht.contao_toolkit.dca.listeners.alias_generator', 'handleSaveCallback'],
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateAlias'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateAlias'],
], ],
'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true], 'eval' => ['mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50', 'unique' => true],
'toolkit' => [ 'toolkit' => [
'alias_generator' => [ 'alias_generator' => [
'factory' => 'netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default', 'factory' => 'netzmacht.contao_leaflet.definition.alias_generator.factory_default',
'fields' => ['title'], 'fields' => ['title'],
], ],
], ],
@@ -210,7 +210,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = [
'chosen' => true, 'chosen' => true,
'helpwizard' => true, 'helpwizard' => true,
], ],
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.vector', 'getVectorOptions'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.vector', 'getVectorOptions'],
'reference' => &$GLOBALS['TL_LANG']['leaflet_vector'], 'reference' => &$GLOBALS['TL_LANG']['leaflet_vector'],
'sql' => "varchar(32) NOT NULL default ''", 'sql' => "varchar(32) NOT NULL default ''",
], ],
@@ -225,7 +225,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = [
'eval' => ['tl_class' => 'w50'], 'eval' => ['tl_class' => 'w50'],
'sql' => "char(1) NOT NULL default ''", 'sql' => "char(1) NOT NULL default ''",
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'clearCache'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'clearCache'],
], ],
], ],
'addPopup' => [ 'addPopup' => [
@@ -261,7 +261,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = [
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['style'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['style'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.vector', 'getStyles'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.vector', 'getStyles'],
'eval' => [ 'eval' => [
'mandatory' => false, 'mandatory' => false,
'tl_class' => 'w50', 'tl_class' => 'w50',
@@ -290,10 +290,10 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = [
'exclude' => true, 'exclude' => true,
'inputType' => 'text', 'inputType' => 'text',
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateCoordinates'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateCoordinates'],
], ],
'wizard' => [ 'wizard' => [
['netzmacht.contao_leaflet_maps.listeners.dca.leaflet', 'getGeocoder'], ['netzmacht.contao_leaflet.listeners.dca.leaflet', 'getGeocoder'],
], ],
'eval' => [ 'eval' => [
'maxlength' => 255, 'maxlength' => 255,
@@ -317,7 +317,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = [
'search' => false, 'search' => false,
'eval' => ['mandatory' => true, 'alwaysSave' => true], 'eval' => ['mandatory' => true, 'alwaysSave' => true],
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateMultipleCoordinates'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateMultipleCoordinates'],
], ],
'sql' => 'longblob NULL', 'sql' => 'longblob NULL',
], ],
@@ -339,7 +339,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = [
], ],
], ],
'save_callback' => [ 'save_callback' => [
['netzmacht.contao_leaflet_maps.listeners.dca.validator', 'validateMultipleCoordinateSets'], ['netzmacht.contao_leaflet.listeners.dca.validator', 'validateMultipleCoordinateSets'],
], ],
'sql' => 'longblob NULL', 'sql' => 'longblob NULL',
], ],

View File

@@ -23,9 +23,9 @@ $GLOBALS['TL_DCA']['tl_module']['fields']['leaflet_map'] = [
'label' => &$GLOBALS['TL_LANG']['tl_module']['leaflet_map'], 'label' => &$GLOBALS['TL_LANG']['tl_module']['leaflet_map'],
'inputType' => 'select', 'inputType' => 'select',
'exclude' => true, 'exclude' => true,
'options_callback' => ['netzmacht.contao_leaflet_maps.listeners.dca.frontend_integration', 'getMaps'], 'options_callback' => ['netzmacht.contao_leaflet.listeners.dca.frontend_integration', 'getMaps'],
'wizard' => [ 'wizard' => [
['netzmacht.contao_leaflet_maps.listeners.dca.frontend_integration', 'getEditMapLink'], ['netzmacht.contao_leaflet.listeners.dca.frontend_integration', 'getEditMapLink'],
], ],
'eval' => [ 'eval' => [
'tl_class' => 'w50 wizard', 'tl_class' => 'w50 wizard',

View File

@@ -59,7 +59,7 @@ class MapElementFactory implements ComponentFactory
$model, $model,
$this->container->get('templating'), $this->container->get('templating'),
$this->container->get('translator'), $this->container->get('translator'),
$this->container->get('netzmacht.contao_leaflet_maps.map.provider'), $this->container->get('netzmacht.contao_leaflet.map.provider'),
$this->container->get('netzmacht.contao_toolkit.contao.input'), $this->container->get('netzmacht.contao_toolkit.contao.input'),
$this->container->get('netzmacht.contao_toolkit.contao.config'), $this->container->get('netzmacht.contao_toolkit.contao.config'),
$column $column

View File

@@ -59,7 +59,7 @@ class MapModuleFactory implements ComponentFactory
$model, $model,
$this->container->get('templating'), $this->container->get('templating'),
$this->container->get('translator'), $this->container->get('translator'),
$this->container->get('netzmacht.contao_leaflet_maps.map.provider'), $this->container->get('netzmacht.contao_leaflet.map.provider'),
$this->container->get('netzmacht.contao_toolkit.contao.input'), $this->container->get('netzmacht.contao_toolkit.contao.input'),
$this->container->get('netzmacht.contao_toolkit.contao.config'), $this->container->get('netzmacht.contao_toolkit.contao.config'),
$column $column