8000 [Routing] remove deprecations for 3.0 by Tobion · Pull Request #13396 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Routing] remove deprecations for 3.0 #13396

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 4 commits into from
Jan 31, 2015

Conversation

Tobion
Copy link
Contributor
@Tobion Tobion commented Jan 13, 2015
Q A
Bug fix? no
New feature? no
BC breaks? yes
Deprecations? no
Tests pass? no, but unrelated
Fixed tickets
License MIT
Doc PR

@Tobion Tobion changed the title Routing remove deprecations [Routing] remove deprecations for 3.0 Jan 13, 2015
@Tobion Tobion force-pushed the routing-remove-deprecations branch from a457a04 to b784ea5 Compare January 15, 2015 12:53
@Tobion
Copy link
Contributor Author
Tobion commented Jan 15, 2015

@fabpot ready

@Tobion
Copy link
Contributor Author
Tobion commented Jan 16, 2015

I forgot to remove pattern in YamlFileLoader::availableKeys

@fabpot fabpot added the Routing label Jan 16, 2015
@Tobion Tobion force-pushed the routing-remove-deprecations branch from b784ea5 to 4ca9ab3 Compare January 16, 2015 07:48
@Tobion
Copy link
Contributor Author
Tobion commented Jan 16, 2015

Fixed

@fabpot
Copy link
Member
fabpot commented Jan 16, 2015

Looks there is a problem somewhere as the tests do not pass.

@Tobion
Copy link
Contributor Author
Tobion commented Jan 16, 2015

@fabpot I had to update the routing requirement in the frameworkbundle. The component tests should now succeed when the PR is merged.

@@ -23,7 +23,7 @@
"symfony/http-foundation": "~2.7|~3.0",
"symfony/http-kernel": "~2.7|~3.0",
"symfony/filesystem": "~2.7|~3.0",
"symfony/routing": "~2.7|~3.0",
"symfony/routing": "~3.0",
Copy link
Member

Choose a reason for hiding this comment

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

That would be the first where this would be needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's only required for tests not the actual functionality (because _scheme/_method would not hurt). Is it possible to have the same dependecy with different versions for require and require-dev?
I.e. ~2.7|~3.0 in require but ~3.0 in require-dev?

Copy link
Member

Choose a reason for hiding this comment

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

No it's not unfortunately. You should adjust the tests to make them less strict. With assertStringMatchesFormat it should be possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or we just leave it this way. Sooner or later its gonna happen anyway.

Copy link
Member

Choose a reason for hiding this comment

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

why is it required for tests of the FrameworkBundle ? Which test is actually breaking when running it on Routing 2.7 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the one describing routes in the console in xml, yaml etc format

@Tobion
Copy link
Contributor Author
Tobion commented Jan 23, 2015

@symfony/deciders ping

@stof
Copy link
Member
stof commented Jan 26, 2015

👍

@Tobion Tobion merged commit f939fea into symfony:master Jan 31, 2015
Tobion added a commit that referenced this pull request Jan 31, 2015
This PR was merged into the 3.0-dev branch.

Discussion
----------

[Routing] remove deprecations for 3.0

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

Commits
-------

f939fea [Routing] make path required again in the xsd
82d54fa [FramworkBundle] our tests now expect symfony 3.0 behavior for routing
4ca9ab3 [FrameworkBundle] remove deprecated routing features
86278cd [Routing] remove deprecated features from routing
@Tobion Tobion deleted the routing-remove-deprecations branch January 31, 2015 20:34
@fabpot
Copy link
Member
fabpot commented Jan 31, 2015

I'm not satisfied with the Composer dep as everywhere else we were able to avoid doing that.

@Tobion
Copy link
Contributor Author
Tobion commented Jan 31, 2015

Well otherwise we would need to add the unset($requirements['_scheme'], $requirements['_method']); again. But as we want to get rid of legacy code in 3.0 I don't think that's what we want.

@Tobion
Copy link
Contributor Author
Tobion commented Jan 31, 2015

And just fixing the test would still confuse users. Because they would see a _scheme requirement in the description even when they didn't even use the deprecated definition.

@fabpot fabpot mentioned this pull request Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0