-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Removed Piwik\Registry and replaced its usage with the container #7124
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
Conflicts: CHANGELOG.md
If we'd break it, it would also mean people will most likely have an error at some point. They won't be able to update the plugin to a newer version as it could break Piwik if StaticContainer is not there yet in the users Piwik version. If they update Piwik first it will fail as well as the plugin still uses the Registry. They would have to update both at the same time which we currently don't do unless someone does the update including all plugins manually at once. Also there seems to be a backslash on the left https://github.com/piwik/piwik/pull/7124/files#diff-f10b4fc6b182e822204d929ace688f74R53 |
I restored The backslash is unrelated to the change (and is in a comment so doesn't affect code) I'll leave it there to keep the diff clean. |
Conflicts: CHANGELOG.md
Merged with master. |
Removed Piwik\Registry and replaced its usage with the container
The changelog entry says the Registry has been removed but it is only deprecated and still there |
Fixed |
Piwik\Registry was very similar to using a container and only contained 2 entries.
I've replaced all that with the container. Basically here is the changelog entry:
I have not kept BC because I have updated (for now locally) all plugins that used it. I had a look in the marketplace but couldn't find any 3rd party plugin using it (its usage was restricted to authentication).
TODO after merge: