Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Documented the trailing_slash_on_root option#9490
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
routing/external_resources.rst Outdated
| use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | ||
| /** | ||
| * @Route("/site", "trailing_slash_on_root"="false") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
this does not work on annotations:trailing_slash_on_root works only as an import option.
routing/external_resources.rst Outdated
| use Symfony\Component\Routing\RouteCollection; | ||
| $app = $loader->import('../src/Controller/', 'annotation'); | ||
| // the second argument is the $trailing_slash_on_root option |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
the argument is named$trailingSlashOnRoot in PHP, for what it matters :)
Thisfixes#9484.
@nicolas-grekas could you please verify if the config of the example is correct? I don't know if
trailing_slash_on_rootis defined for annotations. Thanks!