ProxyDumper
class ProxyDumper implements DumperInterface
Generates dumped PHP code of proxies via reflection.
Methods
| __construct(string $salt = '') | ||
| bool |  isProxyCandidate(Definition $definition)  Inspects whether the given definitions should produce proxy instantiation logic in the dumped container.  |  |
| string |  getProxyFactoryCode(Definition $definition, string $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 = '')
Parameters
| string | $salt | 
bool isProxyCandidate(Definition $definition)
Inspects whether the given definitions should produce proxy instantiation logic in the dumped container.
Parameters
| Definition | $definition | 
Return Value
| bool | 
string getProxyFactoryCode(Definition $definition, string $id)
Generates the code to be used to instantiate a proxy in the dumped factory code.
Parameters
| Definition | $definition | |
| string | $id | service identifier | 
Return Value
| string | 
string getProxyCode(Definition $definition)
Generates the code for the lazy proxy.
Parameters
| Definition | $definition | 
Return Value
| string | 
    © 2004–2017 Fabien Potencier
Licensed under the MIT License.
    http://api.symfony.com/2.7/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.html