Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
[Components][Routing] Fix addPrefix() sample code#3622
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
Conversation
components/routing/introduction.rst Outdated
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.
You're absolutely right about the wrong arguments toaddPrefix, but I don't think the methods can be chained like this - it looks like they all returnnull:https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Routing/RouteCollection.php#L149
bicpi commentedMar 11, 2014
@weaverryan Oh, thanks for verifying this fix, can't remember how that fluid usage slipped in... ;-) But I've found another issue: Theversionadded note below the |
weaverryan commentedMar 12, 2014
I agree and like how you handled it :). Thanks as always Philipp |
This PR was merged into the 2.3 branch.Discussion----------[Components][Routing] Fix addPrefix() sample code| Q | A| ------------- | ---| Doc fix? | yes| New docs? | no| Applies to | all| Fixed tickets | -The sample code used for demonstrating the[`Symfony\Component\Routing\RouteCollection::addPrefix()`](http://api.symfony.com/2.3/Symfony/Component/Routing/RouteCollection.html#method_addPrefix) method did not match the signature. I've updated the code to show the provided features when adding a nested route collection. + some minor fixes along the way.Commits-------e095c13 [Components][Routing] Fix addPrefix() sample code
The sample code used for demonstrating the
Symfony\Component\Routing\RouteCollection::addPrefix()method did not match the signature. I've updated the code to show the provided features when adding a nested route collection. + some minor fixes along the way.