[DCOM-279] Allow AbstractProxyFactory to load proxies by autoloading Created: 05/Mar/15  Updated: 05/Mar/15

Status: Open
Project: Doctrine Common
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: John Flatness Assignee: Benjamin Eberlei
Resolution: Unresolved Votes: 0
Labels: None


 Description   

The AbstractProxyFactory supports several modes for proxy auto-generation. But, all of them, even AUTOGENERATE_NEVER, currently use an explicit require (or direct code evaluation for AUTOGENERATE_EVAL).

Being able to have the proxy factory skip the require would allow you to use autoloading to find and load the proxies when needed. Doctrine of course already has the concept of proxy autoloading, but only for use in deserialization and related contexts, but being able to skip the require here would allow autoloading to be used for Doctrine's normal loading of the proxies as well. This would allow alternative organizational structures, like storing and loading proxies in more than one directory, without requiring major changes to Doctrine or the tooling to support them.

It looks like the change could be as simple as a flag for the proxy factory, or an additional mode AUTOLOAD or AUTOGENERATE_NEVER_AUTOLOAD. Obviously this would be something users would need to opt-in for, as the default behavior currently present suffices for the majority of setups.






[DCOM-278] [GH-358] travis: PHP 7.0 nightly added, allowed failure Created: 02/Mar/15  Updated: 02/Mar/15  Resolved: 02/Mar/15

Status: Resolved
Project: Doctrine Common
Component/s: None
Affects Version/s: None
Fix Version/s: 2.5.0

Type: Improvement Priority: Major
Reporter: Doctrine Bot Assignee: Marco Pivetta
Resolution: Fixed Votes: 0
Labels: php-7.0


 Description   

This issue is created automatically through a Github pull request on behalf of TomasVotruba:

Url: https://github.com/doctrine/common/pull/358

Message:



 Comments   
Comment by Doctrine Bot [ 02/Mar/15 ]

A related Github Pull-Request [GH-358] was assigned:
https://github.com/doctrine/common/pull/358

Comment by Doctrine Bot [ 02/Mar/15 ]

A related Github Pull-Request [GH-358] was merged:
https://github.com/doctrine/common/pull/358





Generated at Fri Mar 06 04:05:39 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.