-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle][Routing] Move RoutingResolverPass to the Routing component #21835
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
Conversation
chalasr
commented
Mar 2, 2017
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | yes |
Tests pass? | yes |
Fixed tickets | n/a |
License | MIT |
Doc PR | n/a |
b63bbeb
to
7135861
Compare
use Symfony\Component\DependencyInjection\Reference; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | ||
@trigger_error(sprintf('The %s class is deprecated since version 3.3 and will be removed in 4.0. Use Symfony\Component\Routing\DependencyInjection\RoutingResolverPass instead.', RoutingResolverPass::class), E_USER_DEPRECATED); |
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.
you can move that line below the "use" and use BaseRoutingResolverPass::class
in sprintf
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.
Ok I wasn't sure if having it immediately after the namespace has an importance
@@ -23,6 +23,7 @@ | |||
"symfony/http-foundation": "~2.8|~3.0", | |||
"symfony/yaml": "~2.8|~3.0", | |||
"symfony/expression-language": "~2.8|~3.0", | |||
"symfony/dependency-injection": "~2.7|~3.0", |
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.
2.8 instead of 2.7
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
7135861
to
7d062fb
Compare
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.
👍
7f9ce37
to
8b04332
Compare
class RoutingResolverPass implements CompilerPassInterface | ||
{ | ||
private $resolverServiceId = 'routing.resolver'; | ||
private $loaderTag = 'routing.loader'; |
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.
default values could be removed here, would prevent a duplication and any sync mistake
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.
that's a mistake, fixed. Thanks
8b04332
to
32be16b
Compare
Thank you @chalasr. |
… the Routing component (chalasr) This PR was merged into the 3.3-dev branch. Discussion ---------- [FrameworkBundle][Routing] Move RoutingResolverPass to the Routing component | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- 32be16b Move RoutingResolverPass to the Routing component