Skip to content

Add deprecation note on routing class parameters #21824

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 1 commit into from
Mar 4, 2017
Merged

Add deprecation note on routing class parameters #21824

merged 1 commit into from
Mar 4, 2017

Conversation

lepiaf
Copy link
Contributor

@lepiaf lepiaf commented Mar 1, 2017

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

Create PR with note about deprecation of class parameters.

#21739 (comment)

@fabpot
Copy link
Member

fabpot commented Mar 1, 2017

Can you also add a note in the Routing component CHANGELOG stating that these parameters are deprecated? And also a note in UPGRADE-3.3.md? Thanks.

UPGRADE-4.0.md Outdated
@@ -207,6 +207,16 @@ FrameworkBundle

* Extending `ConstraintValidatorFactory` is not supported anymore.

* Class parameters in `routing.xml` has been removed
Copy link
Member

@chalasr chalasr Mar 1, 2017

Choose a reason for hiding this comment

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

has => have. Also I think that the place into which parameters were defined does not matter that much for end users. Class parameters related to routing..., Routing class parameters...?

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍

@stof
Copy link
Member

stof commented Mar 3, 2017

is there a way to trigger a deprecation warning (in a late compiler pass maybe) when these parameters are replaced with values different than the default ones ?

@nicolas-grekas
Copy link
Member

@stof I don't remember doing so when we removed such params in 3.0, did we? Not sure it's really worth it.

@nicolas-grekas nicolas-grekas added this to the 3.3 milestone Mar 4, 2017
@fabpot
Copy link
Member

fabpot commented Mar 4, 2017

Thank you @lepiaf.

@fabpot fabpot merged commit 5b0641e into symfony:master Mar 4, 2017
fabpot added a commit that referenced this pull request Mar 4, 2017
This PR was merged into the 3.3-dev branch.

Discussion
----------

Add deprecation note on routing class parameters

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

Create PR with note about deprecation of class parameters.

#21739 (comment)

Commits
-------

5b0641e Add deprecation note on routing class parameters
@fabpot fabpot mentioned this pull request May 1, 2017
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.

6 participants