:rainbow: OOP Proxy wrappers utilities - generates and manages proxies of your objects
php -dxdebug.profiler_enable_trigger=1 -S localhost:8080 -t public
and see where it is hanging.
@Ocramius I had to disable the library again. During peak hours it is not really making a big difference due to the load in our servers. Where would you recommend me to doing the following?
$config = new \ProxyManager\Configuration();
$config->setProxiesTargetDir('/path/to/cache/dir');
spl_autoload_register($config->getProxyAutoloader());
I currently have this set on AppKernel at initializeContainer() but maybe this is not the correct place to do it...
@Ocramius let me know when you have a chance what exactly you mean by "add the generated proxies to your classmap". I tried adding my Factory classes and it didn't help much:
"classmap": [
"app/AppKernel.php",
"app/AppCache.php",
"src/Namespace/To/Factory1/Factory1.php",
"src/Namespace/To/Factory2/Factory2.php",
"src/Namespace/To/Factory3/Factory3.php",
...
]
proxy/dir
is exactly what it says: the place where proxy classes are dumped
Hi, I’d like to use ProxyManager to add a PrefixInterceptor on a Doctrine entity that will load some data from an external API (most of the entity data comes from mysql, but one VO is loaded from Stripe). We however use YAML mapping and now Doctrine is confused, spitting out the following: No mapping file found named 'ProxyManagerGeneratedProxy.__PM__.Account.Generated057e19f64f9522d6b31349e983c34acc.dcm.yml' for class 'ProxyManagerGeneratedProxy\__PM__\Account\Generated057e19f64f9522d6b31349e983c34acc
Anyone got any ideas on how to fix that?