From 2d1dadbefc1321a38dffd320ecde41dff1b289b5 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Tue, 13 Jan 2015 13:44:07 +0100 Subject: [PATCH] Fix encoder initialisation after. --- module/config/services.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/config/services.php b/module/config/services.php index 95ee855..39b4979 100644 --- a/module/config/services.php +++ b/module/config/services.php @@ -14,6 +14,7 @@ use Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper; use Netzmacht\Contao\Leaflet\MapService; use Netzmacht\Javascript\Builder; use Netzmacht\Javascript\Encoder; +use Netzmacht\Javascript\Output; use Netzmacht\LeafletPHP\Leaflet; use Symfony\Component\EventDispatcher\EventDispatcher; @@ -73,7 +74,7 @@ $container['leaflet.definition.builder'] = $container->share(function($container $boot = $container['leaflet.boot']; $dispatcher = $container['leaflet.definition.builder.event-dispatcher']; - $encoder = new Encoder($dispatcher, JSON_UNESCAPED_SLASHES); + $encoder = new Encoder($dispatcher, new Output(), JSON_UNESCAPED_SLASHES); $builder = new Builder($encoder, $dispatcher); $leaflet = new Leaflet($builder);