Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Proxies for lazy loaded dependencies are not written to file? #411
//definitions.php array( Class1::class => object()->lazy(), Class2::class => object()->lazy(), ClassN::class => object()->lazy(), )
When switching back to non-lazy configured objects, performance is back to normal again. After browsing around in the source code, it seems a
Adding one line to the
Also opened #412
Oh wow thanks. This is not great indeed, but I think this is because of a BC break in ProxyManager 2.0 (https://github.com/Ocramius/ProxyManager/releases/tag/2.0.0): Ocramius/ProxyManager#105
The "officially recommended" version is ~1.0 (through docs and https://github.com/PHP-DI/PHP-DI/blob/master/composer.json#L44).
If you have time you could also update composer.json and the docs, but if you don't that's not a problem I'll probably have some time later today for that.
Don't know whether that is still required, both versions are supported now right ?