-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Support boolean parameters in Route condition #30366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
Would you like to send a PR doing so? I'd suggest casting booleans to the |
I'll give it a shot but not in the next couple of weeks. Too much on my plate 😅 |
See #30379 |
symfony-splitter
pushed a commit
to symfony/framework-bundle
that referenced
this issue
Mar 4, 2019
…ameters for routes (dmaicher) This PR was merged into the 4.3-dev branch. Discussion ---------- [FrameworkBundle][Routing] allow boolean container parameters for routes | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #30366 | License | MIT | Doc PR | symfony/symfony-docs#11059 This fixes symfony/symfony#30366 and adds support for boolean container parameters in route conditions, defaults etc. Commits ------- 21f4e38800 [FrameworkBundle][Routing] allow boolean container parameters for routes
fabpot
added a commit
that referenced
this issue
Mar 4, 2019
…ameters for routes (dmaicher) This PR was merged into the 4.3-dev branch. Discussion ---------- [FrameworkBundle][Routing] allow boolean container parameters for routes | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #30366 | License | MIT | Doc PR | symfony/symfony-docs#11059 This fixes #30366 and adds support for boolean container parameters in route conditions, defaults etc. Commits ------- 21f4e38 [FrameworkBundle][Routing] allow boolean container parameters for routes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
Using parameter substitution with boolean is not allowed in route condition.
Example
So this is not possible:
Exception is here :
The text was updated successfully, but these errors were encountered: