Move Encoder flags to flags class.

This commit is contained in:
David Molineus
2015-01-28 10:33:00 +01:00
parent c1c5173f34
commit abbc1d8b0e
2 changed files with 4 additions and 2 deletions

View File

@@ -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));
}
}
}