Fix api inconsistency for Contao 3.5 (See #37).

This commit is contained in:
David Molineus
2015-07-22 13:56:37 +02:00
parent ff8cda1371
commit 3c983e86bc
3 changed files with 49 additions and 9 deletions

View File

@@ -11,7 +11,7 @@
use Netzmacht\Contao\Leaflet\Boot;
use Netzmacht\Contao\Leaflet\ContaoAssets;
use Netzmacht\Contao\Leaflet\Frontend\Helper\FrontendApi;
use Netzmacht\Contao\Leaflet\Frontend\Helper\InsertTagReplacer;
use Netzmacht\Contao\Leaflet\Frontend\ValueFilter;
use Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper;
use Netzmacht\Contao\Leaflet\MapService;
@@ -114,7 +114,7 @@ $container['leaflet.definition.builder'] = $container->share(function($container
});
$container['leaflet.frontend.value-filter'] = $container->share(function() {
return new ValueFilter(new FrontendApi());
return new ValueFilter(new InsertTagReplacer());
});
$container['leaflet.service-container'] = $container->share(function($container) {