-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Drop doctrine/common proxies in favor of ProxyManager #1875
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.
Indeed the changes are smaller than one could anticipate :)
Regarding generation strategies, I'd like to give those some though. Here's what we used to have:
Proxy Manager now only has two strategies that we can currently use:
We could write our own strategies to replicate the |
|
In case of read-only filesystem, both strategies have the same shortcoming: they both require you to generate all your proxies upfront:
So I don't thing the |
Ok, so we're deprecating |
6cc89d6
to
1d94693
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.
Big 👍 beside doc changes
About that "big 👍" - tests are quite failing 🙈 |
Weird, they were quite stable on my machine. Will have to check that out later. |
9fea083
to
3d019ac
Compare
3d019ac
to
4681d8b
Compare
🎉 |
Summary
This PR replaces the proxy implementation from doctrine/common with ocramius/proxy-manager. Tests are stable, with the exception of two tests that were no longer relevant. BC breaks still need to be documented.
As for a possible BC layer, I'm not sure what this would look like or if we want to spend the time creating one.
Todos:
UPGRADE
documentReplace calls toget_class
with calls toClassNameResolver
, in which case it should be moved out of theProxy
namespace?