Skip to content

Commit

Permalink
Set to twig if available
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored Oct 31, 2019
1 parent d1503e4 commit 09792a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DependencyInjection/Compiler/ConfigurationCheckPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public function process(ContainerBuilder $container)

if (!$container->has((string) $container->getAlias('fos_rest.templating'))) {
$container->removeAlias('fos_rest.templating');
}

if ($container->hasDefinition('twig')) {
$container->setAlias('fos_rest.templating', 'twig');
if ($container->hasDefinition('twig')) {
$container->setAlias('fos_rest.templating', 'twig');
}
}
}
}

0 comments on commit 09792a0

Please sign in to comment.