Skip to content

Commit

Permalink
change template name format to twig format
Browse files Browse the repository at this point in the history
instead of the older symfony/templating format
fixes #263
  • Loading branch information
esserj authored and dbu committed Mar 12, 2019
1 parent fcb37fa commit fc09e9e
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 fc09e9e

Please sign in to comment.