diff --git a/src/Bridge/Symfony/CocurSlugifyExtension.php b/src/Bridge/Symfony/CocurSlugifyExtension.php index f8fd6510..c3ca7a6d 100644 --- a/src/Bridge/Symfony/CocurSlugifyExtension.php +++ b/src/Bridge/Symfony/CocurSlugifyExtension.php @@ -15,6 +15,7 @@ use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Reference; use Symfony\Component\HttpKernel\DependencyInjection\Extension; +use Symfony\Component\HttpKernel\Kernel; /** * CocurSlugifyExtension @@ -57,5 +58,10 @@ public function load(array $configs, ContainerBuilder $container) ->addTag('twig.extension') ->setPublic(false); $container->setAlias('slugify', 'cocur_slugify'); + + // for symfony versions > 3.3 + if (Kernel::VERSION_ID > 30300) { + $container->setAlias('Cocur\Slugify\Slugify', 'cocur_slugify'); + } } }