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
Updates php-di to 6.2.1 #16311
Updates php-di to 6.2.1 #16311
Conversation
@tsteur Not sure if updating the lib might cause problems while updating. The method Also did not yet find a easy way to solve this:
Might be required to change all event definitions to not use references if there is no other solution.... Will have a closer look at that... |
@sgiehl is there any way that we define |
guess we could try using autowire as alias, might work in the most cases... |
169d706
to
7c5ee00
Compare
Wrapping the observer functions into I've also added a proxy for Should be ready for a first review... |
@sgiehl can you adjust the docs in https://developer.matomo.org/guides/dependency-injection ? It's showing |
The docs mention also |
@sgiehl also a question. Any reason we're using Which one is usually the better one to use? |
Generally looks good otherwise. Be great to clarify usage of create vs autowire, update the docs etc. And be great if you could then also update the other free plugins and premium features after merging |
I suppose we might also need to create new releases for plugins that already had a 4.x release |
If I understood that correctly: |
If their DI config need to be updated... For some plugins it's only test config, so a new release might not be needed... |
reading eg https://stackoverflow.com/questions/49474983/how-to-use-autowire-create-and-get-in-definitions-for-php-di I reckon autowire is a good choice that should always work. |
looks otherwise good to merge. Need to update docs though. |
I've also added a proxy from DI\link to DI\get now, so plugins that could possibly use DI\link won't break on update... |
Sweet. Feel free to merge @sgiehl . Looks like some merge conflicts will need to be resolved. |
After merging this we may need to update the DI definitions if various other plugins.
Once this is finished and approved I'll create PRs accordingly...
fixes #15974