You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ $bundles = array(
34
34
35
35
Add the following to your config file:
36
36
37
-
**NOTE** If you're using symfony 4, the config will be in `config/packages/ewz_recaptcha.yaml`. The local dev enviroment has its own config in `config/packages/dev/ewz_recaptcha.yaml`.
37
+
**NOTE**: If you're using symfony 4, the config will be in `config/packages/ewz_recaptcha.yaml`. The local dev enviroment has its own config in `config/packages/dev/ewz_recaptcha.yaml`.
38
38
39
39
```yaml
40
40
# app/config/config.yml
@@ -112,6 +112,25 @@ ewz_recaptcha:
112
112
verify_host: true
113
113
```
114
114
115
+
**NOTE**: If you're using symfony 5 and want to configure the bundle with PHP files instead of YAML, the configuration is like this:
116
+
117
+
``` php
118
+
// config/packages/ewz_recaptcha.php
119
+
120
+
<?php declare(strict_types=1);
121
+
122
+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
123
+
124
+
return static function (ContainerConfigurator $configurator): void
0 commit comments