for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Zenstruck\Foundry\Proxy;
use ProxyManager\Factory\AccessInterceptorValueHolderFactory;
use ProxyManager\ProxyGenerator\ProxyGeneratorInterface;
/**
* A little extension to add {@see SetValueHolderMethod} to the proxy.
*
* @author Wouter de Jong <[email protected]>
*/
class ValueReplacingAccessInterceptorValueHolderFactory extends AccessInterceptorValueHolderFactory
{
protected function getGenerator(): ProxyGeneratorInterface
return new ValueReplacingGenerator(parent::getGenerator());
}