-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Bridge\Doctrine][FrameworkBundle] Deprecate some remaining uses of ContainerAwareTrait #24409
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,5 +110,16 @@ | |
<argument type="service" id="router.request_context" on-invalid="ignore" /> | ||
<argument type="service" id="logger" on-invalid="ignore" /> | ||
</service> | ||
|
||
<service id="Symfony\Bundle\FrameworkBundle\Controller\RedirectController" public="true"> | ||
<argument type="service" id="router" /> | ||
<argument>%request_listener.http_port%</argument> | ||
<argument>%request_listener.https_port%</argument> | ||
</service> | ||
|
||
<service id="Symfony\Bundle\FrameworkBundle\Controller\TemplateController" public="true"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this service belongs in routing.xml. It has nothing to do with routing?! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These services are useful only when a route references them, that's why I made it this way. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't one use them without routing using fragments? |
||
<argument type="service" id="twig" on-invalid="ignore" /> | ||
<argument type="service" id="templating" on-invalid="ignore" /> | ||
</service> | ||
</services> | ||
</container> |
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.
can't it just be 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.
I think so:
@deprecated
doesn't trigger a deprecation when a method is overridden but the parent is not called.@final
does.