-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
chore: Cleanup DIContainer class #53523
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
f847eb6 to
8990f69
Compare
356e4ad to
9fbc182
Compare
Also removed deprecated tag from the class as this class will not be removed, only the interface IAppContainer and associated methods should be removed. Signed-off-by: Côme Chilliet <[email protected]>
Some tests related to MiddlewareDispatcher are still failing. Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
…teCookieMiddleware injection Signed-off-by: Côme Chilliet <[email protected]>
Cannot use an alias for this one, as it depends upon LoggerInterface so that creates an infinite loop. Signed-off-by: Côme Chilliet <[email protected]>
Otherwise it gets resolved to \OC::$server. Signed-off-by: Côme Chilliet <[email protected]>
This caused a call to logger too soon in init phase Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
In this case we do not want the application DI container because we are requesting classes from other applications, so it’s better to ask the server container. We use \OCP\Server::get for this. Signed-off-by: Côme Chilliet <[email protected]>
…on container This make sure that all middlewares get a logger scoped to the application id, among other things. Signed-off-by: Côme Chilliet <[email protected]>
d4fb88f to
2346a52
Compare
provokateurin
left a comment
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.
Nice, maybe you could squash some of the commits to make bisecting easier in case any of the changes turn out to be problematic later on?
But CI won’t be green anymore 😨 |
|
I often prefer detailed commits, because you can treat them by batch if you want, while once squashed there is no going back. I’m gonna merge this version to move forward with this. I’ll try to do less commits next time. |
Summary
Cleanup DIContainer class.
Also removed the
@deprecatedtag from the class as this class will not be removed, only the interface IAppContainer and associated methods should be removed.Checklist