class ProxyDumper implements DumperInterface
Generates dumped PHP code of proxies via reflection.
Methods
__construct(string $salt = '') Constructor. | ||
bool | isProxyCandidate(Definition $definition) Inspects whether the given definitions should produce proxy instantiation logic in the dumped container. | |
string | getProxyFactoryCode(Definition $definition, $id) Generates the code to be used to instantiate a proxy in the dumped factory code. | |
string | getProxyCode(Definition $definition) Generates the code for the lazy proxy. |
Details
__construct(string $salt = '')
Constructor.
bool isProxyCandidate(Definition $definition)
Inspects whether the given definitions should produce proxy instantiation logic in the dumped container.
string getProxyFactoryCode(Definition $definition, $id)
Generates the code to be used to instantiate a proxy in the dumped factory code.
string getProxyCode(Definition $definition)
Generates the code for the lazy proxy.
Please login to continue.