-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Use PSR container interface and deprecate our own abstraction #21809
Conversation
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.
Maybe I'm not 100% right with the PSR... but it seems has and get have clear defined meanings...
8f432e7
to
988f09d
Compare
FYI one of my attempts was to get rid of Pimple and replace it with Symfony. But that container is not easy to use as it kind of expects to be first notified about all the known services, then compiled and finally used. But we have a more dynamic approach and allow registration later on. So I switched to the League container and that felt a lot more natural to our DI usage. However, the changes are major and we (@rullzer and I) think it would be a bad idea to cram this in so late in the 20 cycle. Thus this will be done for 21. The important part is the new PSR API. That is done with this PR. So the migration can start. |
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.
🚀
f4013f3
to
5e4f1ea
Compare
Let's see if CI can find the faults. |
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
5e4f1ea
to
4152216
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.
Fine by me 👍 Also changing to a PSR standard is the way to go
This breaks apps ability to use |
So we need to adjust |
Yeah, fixed in #22027 |
Documented at nextcloud/documentation#5160 |
For https://help.nextcloud.com/t/do-we-still-need-ocp-icontainer/86139
IContainer
IContainer
and friendsDocs are at nextcloud/documentation#2202