-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
clarify the routing component documentation a bit #6023
Conversation
dbu
commented
Dec 16, 2015
Q | A |
---|---|
Doc fix? | yes |
New docs? | no |
Applies to | 2.3+ |
Fixed tickets | Relates to #5709 |
@@ -62,11 +62,15 @@ URL path and some array of custom variables in its constructor. This array | |||
of custom variables can be *anything* that's significant to your application, | |||
and is returned when that route is matched. | |||
|
|||
If no matching route can be found a | |||
:class:`Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException` will be thrown. | |||
The :method:``UrlMatcher::match() <Symfony\\Component\\Routing\\UrlMatcher::match`` |
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.
missing angle bracket
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.
and double backticks should be single ones
fixed |
👍 |
anything left to do here or can this be merged? |
@javiereguiluz @weaverryan @wouterj What do you think? |
|
||
In addition to your array of custom variables, a ``_route`` key is added, | ||
which holds the name of the matched route. | ||
If no matching route can be found during ``match``, a |
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.
I'd remove during match
because it looks redundant.
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.
fixed
Nice job @dbu, thanks :) |
This PR was merged into the 2.3 branch. Discussion ---------- clarify the routing component documentation a bit | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3+ | Fixed tickets | Relates to #5709 Commits ------- 940fb8f clarify the routing component documentation a bit