Skip to content

Commit

Permalink
Merge pull request #205 from bobvandevijver/patch-2
Browse files Browse the repository at this point in the history
Use Twig namespaced syntax
  • Loading branch information
excelwebzone committed Jun 9, 2018
2 parents d6b5a8f + e6546f4 commit 32c70c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ However, you can always implement your own custom form widget.
**Twig**:

``` jinja
{% form_theme form 'EWZRecaptchaBundle:Form:ewz_recaptcha_widget.html.twig' %}
{% form_theme form '@EWZRecaptcha/Form/ewz_recaptcha_widget.html.twig' %}
{{ form_widget(form.recaptcha, { 'attr': {
'options' : {
Expand Down Expand Up @@ -345,7 +345,7 @@ If you want to use a custom theme, put your chunk of code before setting the the
<div><a href="javascript:Recaptcha.showhelp()">Help</a></div>
</div>
{% form_theme form 'EWZRecaptchaBundle:Form:ewz_recaptcha_widget.html.twig' %}
{% form_theme form '@EWZRecaptcha/Form/ewz_recaptcha_widget.html.twig' %}
{{ form_widget(form.recaptcha, { 'attr': {
'options' : {
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/EWZRecaptchaExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function registerWidget(ContainerBuilder $container)
}

if (in_array('twig', $templatingEngines)) {
$formResource = 'EWZRecaptchaBundle:Form:ewz_recaptcha_widget.html.twig';
$formResource = '@EWZRecaptcha/Form/ewz_recaptcha_widget.html.twig';

$container->setParameter('twig.form.resources', array_merge(
$this->getTwigFormResources($container),
Expand Down

0 comments on commit 32c70c0

Please sign in to comment.