Skip to content
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

Feature request: Autogenerate mode that does nothing #820

Open
zerocrates opened this issue Sep 15, 2017 · 3 comments
Open

Feature request: Autogenerate mode that does nothing #820

zerocrates opened this issue Sep 15, 2017 · 3 comments

Comments

@zerocrates
Copy link

I have a system where proxies are stored in several different locations. The proxy autoloader system provides a perfectly reasonable way of dealing with this, but AbstractProxy::getProxyDefintion gets in the way: its behavior is based on the proxy autogenerate mode, and all the modes that deal with files require a specific file. In other words, I want to configure for AUTOGENERATE_NEVER, but also just leave loading the proxy up to the autoloader.

An additional autogenerate mode that's just a no-op would accomplish this very simply.

@Ocramius
Copy link
Member

This will unlikely be implemented in 2.x, but rather in 3.x if I manage to finish up doctrine/orm#1241

@zerocrates
Copy link
Author

OK, I basically expected that.

This was possible but undocumented before #816 (by choosing any value not accounted for by the switch), and worked quite well. I may just have to stick to those versions where it continues to be possible then.

@Ocramius
Copy link
Member

@zerocrates if you want, you can submit a PR to introduce an "attempt autoloading" mode :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants