Rework filter handling (Fixes #50).

This commit is contained in:
David Molineus
2017-10-11 14:40:01 +02:00
parent e1685f65c5
commit 5ce9d517bc
7 changed files with 92 additions and 55 deletions

View File

@@ -14,7 +14,7 @@ services:
- '@netzmacht.contao_toolkit.contao.input_adapter'
- '@netzmacht.contao_leaflet.map.assets'
- '@netzmacht.contao_leaflet.cache'
- [] # TODO: Rework filter handling.
- '@netzmacht.contao_leaflet.filter_factory'
- '%kernel.debug%'
netzmacht.contao_leaflet.libraries:
@@ -22,6 +22,11 @@ services:
arguments:
- '@contao.framework'
netzmacht.contao_leaflet.filter_factory:
class: Netzmacht\Contao\Leaflet\Filter\FilterFactory
arguments:
- '%netzmacht.contao_leaflet.filters%'
netzmacht.contao_leaflet.cache:
alias: 'netzmacht.contao_leaflet.cache.default'