Skip to content

Unify URL generator reference type + make linking in php templates consistent with twig #16276

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

Merged
merged 3 commits into from
Oct 19, 2015

Conversation

Tobion
Copy link
Contributor

@Tobion Tobion commented Oct 18, 2015

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets #14672
License MIT
Doc PR TODO

Please see ticket.
Please merge #16277 first. I will then rebase this to make tests pass.

@Tobion Tobion changed the title [WIP] Urlgenerator referencetype [WIP] Unify URL generator reference type + make linking in php templates consistent with twig Oct 18, 2015
fabpot added a commit that referenced this pull request Oct 18, 2015
This PR was squashed before being merged into the 2.3 branch (closes #16277).

Discussion
----------

[Routing] use constants in tests

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Use constants in tests instead of hardcoded values in preparation for #16276

Commits
-------

608c8d2 [Routing] use constants in tests
@fabpot
Copy link
Member

fabpot commented Oct 18, 2015

👍

@Tobion Tobion force-pushed the urlgenerator-referencetype branch from 22b777d to 388fa43 Compare October 18, 2015 20:35
@Tobion
Copy link
Contributor Author

Tobion commented Oct 18, 2015

Rebased

@Tobion Tobion changed the title [WIP] Unify URL generator reference type + make linking in php templates consistent with twig Unify URL generator reference type + make linking in php templates consistent with twig Oct 18, 2015
@xabbuh
Copy link
Member

xabbuh commented Oct 19, 2015

👍

Status: Reviewed

@fabpot
Copy link
Member

fabpot commented Oct 19, 2015

Thank you @Tobion.

@fabpot fabpot merged commit 388fa43 into symfony:2.8 Oct 19, 2015
fabpot added a commit that referenced this pull request Oct 19, 2015
…hp templates consistent with twig (Tobion)

This PR was merged into the 2.8 branch.

Discussion
----------

Unify URL generator reference type + make linking in php templates consistent with twig

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #14672
| License       | MIT
| Doc PR        | TODO

Please see ticket.
Please merge #16277 first. I will then rebase this to make tests pass.

Commits
-------

388fa43 [Templating] deprecate low-level RouterHelper::generate method as it's cumbersome to use constants in templates
97d6828 [Templating] introduce path and url methods in php templates to be in line with twig templates
912fc4d [Routing] deprecate the old url generator reference type values
@Tobion Tobion deleted the urlgenerator-referencetype branch October 19, 2015 10:23
@xabbuh
Copy link
Member

xabbuh commented Oct 20, 2015

see symfony/symfony-docs#5813 and symfony/symfony-docs#5814 for the documentation update

craue added a commit to craue/CraueConfigBundle that referenced this pull request Oct 20, 2015
weaverryan added a commit to symfony/symfony-docs 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
@fabpot fabpot mentioned this pull request Nov 16, 2015
weaverryan added a commit to symfony/symfony-docs that referenced this pull request Nov 30, 2015
This PR was merged into the 2.8 branch.

Discussion
----------

Use path() and url() PHP templating helpers

| Q | A
| --- | ---
| Doc fix? | no
| New docs? | yes (symfony/symfony#16276)
| Applies to | 2.8+
| Fixed tickets | #5814

Commits
-------

a4ad744 Use path() and url() PHP templating helpers
craue added a commit to craue/CraueFormFlowBundle that referenced this pull request Dec 1, 2015
craue added a commit to craue/CraueFormFlowBundle that referenced this pull request Dec 1, 2015
craue added a commit to craue/CraueFormFlowBundle that referenced this pull request Dec 1, 2015
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.

4 participants