Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
According to http://symfony.com/doc/current/book/routing.html#required-and-optional-placeholders I should be able to have an optional parameter by setting it's default value in defaults. This seems not working for me anymore. I was playing with the symfony standard edition as well as vanilla symfony in version 3.0.2
defaults
Tested on annotation as well as a yaml routing:
blog: path: /blog/{page} defaults: { _controller: AppBundle:Default:blog, page: 1 }
Running: bin/console router:match /blog/2 I get: But bin/console router:match /blog/ gives:
bin/console router:match /blog/2
bin/console router:match /blog/
[ERROR] None of the routes match the path "/blog/"
The text was updated successfully, but these errors were encountered:
see the explanation here #5869 (comment)
Sorry, something went wrong.
yeah... makes sense. Thanks @jakzal
No branches or pull requests
According to http://symfony.com/doc/current/book/routing.html#required-and-optional-placeholders I should be able to have an optional parameter by setting it's default value in
defaults
.This seems not working for me anymore.
I was playing with the symfony standard edition as well as vanilla symfony in version 3.0.2
Tested on annotation as well as a yaml routing:
Running:

bin/console router:match /blog/2
I get:But
bin/console router:match /blog/
gives:
The text was updated successfully, but these errors were encountered: