Skip to content

Commit

Permalink
Merge branch 'kbond-symfony3.3-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
acasademont committed Jun 25, 2017
2 parents 49f6917 + 3a509b2 commit dc80158
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions DependencyInjection/JMSI18nRoutingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ public function load(array $configs, ContainerBuilder $container)
$container->setParameter('jms_i18n_routing.redirect_to_host', $config['redirect_to_host']);
$container->setParameter('jms_i18n_routing.cookie.name', $config['cookie']['name']);

$this->addClassesToCompile(array(
$container->getDefinition('jms_i18n_routing.router')->getClass(),
));
if (PHP_VERSION_ID < 70000) {
$this->addClassesToCompile(array(
$container->getDefinition('jms_i18n_routing.router')->getClass(),
));
}

if ('prefix' === $config['strategy']) {
$container
Expand Down

0 comments on commit dc80158

Please sign in to comment.