Skip to content
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

Merged
merged 1 commit into from
Nov 5, 2015

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Oct 20, 2015

Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets symfony/symfony#16276

@@ -271,6 +271,11 @@ controller:

$router->generate($route, $params, $absolute);

.. note::

The ``$absolute`` argument must be one of the constants defined in
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@xabbuh xabbuh force-pushed the route-generate-type-argument branch from 50ecc55 to f00efff Compare October 20, 2015 10:15
@Tobion
Copy link
Contributor

Tobion commented Oct 20, 2015

👍

2 similar comments
@OskarStark
Copy link
Contributor

👍

@timglabisch
Copy link
Contributor

👍

@javiereguiluz
Copy link
Member

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.

👍

@weaverryan
Copy link
Member

Thanks!

@weaverryan weaverryan merged commit f00efff into symfony:2.3 Nov 5, 2015
weaverryan added a commit that referenced this pull request Nov 5, 2015
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
@xabbuh xabbuh deleted the route-generate-type-argument branch November 5, 2015 20:08
xabbuh added a commit that referenced this pull request Dec 14, 2015
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants