Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit 32c70c0

Browse files
authored
Merge pull request #205 from bobvandevijver/patch-2
Use Twig namespaced syntax
2 parents d6b5a8f + e6546f4 commit 32c70c0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ However, you can always implement your own custom form widget.
280280
**Twig**:
281281

282282
``` jinja
283-
{% form_theme form 'EWZRecaptchaBundle:Form:ewz_recaptcha_widget.html.twig' %}
283+
{% form_theme form '@EWZRecaptcha/Form/ewz_recaptcha_widget.html.twig' %}
284284
285285
{{ form_widget(form.recaptcha, { 'attr': {
286286
'options' : {
@@ -345,7 +345,7 @@ If you want to use a custom theme, put your chunk of code before setting the the
345345
<div><a href="javascript:Recaptcha.showhelp()">Help</a></div>
346346
</div>
347347
348-
{% form_theme form 'EWZRecaptchaBundle:Form:ewz_recaptcha_widget.html.twig' %}
348+
{% form_theme form '@EWZRecaptcha/Form/ewz_recaptcha_widget.html.twig' %}
349349
350350
{{ form_widget(form.recaptcha, { 'attr': {
351351
'options' : {

src/DependencyInjection/EWZRecaptchaExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function registerWidget(ContainerBuilder $container)
5151
}
5252

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

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

0 commit comments

Comments
 (0)