mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-30 12:03:44 +01:00
Move Encoder flags to flags class.
This commit is contained in:
@@ -13,6 +13,7 @@ namespace Netzmacht\Contao\Leaflet\Subscriber;
|
||||
|
||||
use Netzmacht\Contao\Leaflet\Frontend\RequestUrl;
|
||||
use Netzmacht\JavascriptBuilder\Encoder;
|
||||
use Netzmacht\JavascriptBuilder\Flags;
|
||||
use Netzmacht\JavascriptBuilder\Symfony\Event\EncodeValueEvent;
|
||||
use Netzmacht\JavascriptBuilder\Symfony\Event\EncodeReferenceEvent;
|
||||
use Netzmacht\JavascriptBuilder\Exception\EncodeValueFailed;
|
||||
@@ -118,7 +119,7 @@ class EncoderSubscriber implements EventSubscriberInterface
|
||||
);
|
||||
|
||||
foreach ($value->getMethodCalls() as $call) {
|
||||
$event->addLine($call->encode($encoder, Encoder::CLOSE_STATEMENT));
|
||||
$event->addLine($call->encode($encoder, Flags::CLOSE_STATEMENT));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user