Skip to content

Commit

Permalink
Fix deprecation with Twig 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Mar 20, 2019
1 parent 6dffb4d commit 33c02c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/TwigExtensionPass.php
Expand Up @@ -13,7 +13,7 @@ public function process(ContainerBuilder $container)
{
if (!$container->hasDefinition('twig.runtime_loader')
|| !class_exists(SerializerRuntimeExtension::class)
|| !interface_exists('Twig_RuntimeLoaderInterface')
|| !(interface_exists('Twig\RuntimeLoader\RuntimeLoaderInterface') || interface_exists('Twig_RuntimeLoaderInterface'))
|| !class_exists(SerializerRuntimeHelper::class)
) {
$container->removeDefinition('jms_serializer.twig_extension.serializer_runtime_helper');
Expand Down

0 comments on commit 33c02c9

Please sign in to comment.