forked from Snck3rs/contao-leaflet-maps
Replace insert tags and masked entities. (Fix #17)
This commit is contained in:
@@ -10,8 +10,11 @@
|
||||
*/
|
||||
|
||||
use Netzmacht\Contao\Leaflet\Boot;
|
||||
use Netzmacht\Contao\Leaflet\Frontend\Helper\FrontendApi;
|
||||
use Netzmacht\Contao\Leaflet\Frontend\ValueFilter;
|
||||
use Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper;
|
||||
use Netzmacht\Contao\Leaflet\MapService;
|
||||
use Netzmacht\Contao\Leaflet\ServiceContainer;
|
||||
use Netzmacht\JavascriptBuilder\Builder;
|
||||
use Netzmacht\JavascriptBuilder\Encoder;
|
||||
use Netzmacht\JavascriptBuilder\Encoder\Chain\MultipleChain;
|
||||
@@ -100,3 +103,11 @@ $container['leaflet.definition.builder'] = $container->share(function($container
|
||||
|
||||
return $boot->initializeLeafletBuilder($leaflet);
|
||||
});
|
||||
|
||||
$container['leaflet.frontend.value-filter'] = $container->share(function() {
|
||||
return new ValueFilter(new FrontendApi());
|
||||
});
|
||||
|
||||
$container['leaflet.service-container'] = $container->share(function($container) {
|
||||
return new ServiceContainer($container);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user