-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
use constants to choose generated URL type #5813
Conversation
xabbuh
commented
Oct 20, 2015
Q | A |
---|---|
Doc fix? | yes |
New docs? | no |
Applies to | all |
Fixed tickets | symfony/symfony#16276 |
fc151b3
to
50ecc55
Compare
@@ -271,6 +271,11 @@ controller: | |||
|
|||
$router->generate($route, $params, $absolute); | |||
|
|||
.. note:: | |||
|
|||
The ``$absolute`` argument must be one of the constants defined in |
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 actually named $referenceType
in Symfony, not $absolute
, as $absolute
does not make sense anymore since it is not a simple boolean anymore.
I suggest to update the doc to use the uptodate name
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
50ecc55
to
f00efff
Compare
👍 |
2 similar comments
👍 |
👍 |
These changes are a bit misleading because they are targeted at Symfony 2.3 but this change is deprecated in 2.8 and mandatory since 3.0. However, in this case, I agree with committing the changes to 2.3 and up. Thanks. 👍 |
Thanks! |
This PR was merged into the 2.3 branch. Discussion ---------- use constants to choose generated URL type | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | symfony/symfony#16276 Commits ------- f00efff use constants to choose generated URL type
This PR was merged into the 2.3 branch. Discussion ---------- Fix missing constant usage for generating urls This was forgotten in #5813 as reported in symfony/symfony#16991 Commits ------- 2ecc541 Fix missing constant usage for generating urls