Skip to content

Commit

Permalink
#24 - Fix template reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Herndler committed Apr 30, 2019
1 parent e2e38c6 commit af1a285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/Compiler/FormCompilerPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class FormCompilerPass implements CompilerPassInterface
public function process(ContainerBuilder $container)
{
$resources = $container->getParameter('twig.form.resources');
if (in_array('EoHoneypotBundle:Form:div_layout.html.twig', $resources) === false) {
array_unshift($resources, 'EoHoneypotBundle:Form:div_layout.html.twig');
if (in_array('@EoHoneypot/Form/div_layout.html.twig', $resources, true) === false) {
array_unshift($resources, '@EoHoneypot/Form/div_layout.html.twig');
$container->setParameter('twig.form.resources', $resources);
}
}
Expand Down

0 comments on commit af1a285

Please sign in to comment.