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
feature #14976 [DependencyInjection] Negated (not:) env var processor (bpolaszek)
This PR was squashed before being merged into the 5.3-dev branch.
Discussion
----------
[DependencyInjection] Negated (not:) env var processor
This PR adds documentation for symfony/symfony#40169: negated env var processor:
------
Casts to a bool (just as `env(bool:...)` does) except it returns the inverted value(falsy values are returned as `true`, truthy values are returned as `false`):
```yaml
# config/services.yaml
parameters:
safe_for_production: '%env(not:APP_DEBUG)%'
```
Commits
-------
3ff812d [DependencyInjection] Negated (not:) env var processor
0 commit comments