Skip to content

Commit

Permalink
Merge pull request #268 from symfony-cmf/Inventis-change-to-new-templ…
Browse files Browse the repository at this point in the history
…ate-notation

change to new template notation
  • Loading branch information
dbu authored Mar 12, 2019
2 parents fcb37fa + fc09e9e commit 4638e20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

2.1.1
-----

* Fixed another template reference to work with Symfony 4.

2.1.0
-----

Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/CmfCoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public function setupFormTypes(ContainerBuilder $container, LoaderInterface $loa
// if there is twig, register our form type with twig
if ($container->hasParameter('twig.form.resources')) {
$resources = $container->getParameter('twig.form.resources');
$container->setParameter('twig.form.resources', array_merge($resources, ['CmfCoreBundle:Form:checkbox_url_label_form_type.html.twig']));
$container->setParameter('twig.form.resources', array_merge($resources, ['@CmfCore/Form/checkbox_url_label_form_type.html.twig']));
}
}
}
Expand Down

0 comments on commit 4638e20

Please sign in to comment.