NullDumper
in package
implements
DumperInterface
Null dumper, negates any proxy code generation for any given service definition.
Tags
Interfaces, Classes and Traits
- DumperInterface
- Lazy proxy dumper capable of generating the instantiation logic PHP code for proxied services.
Table of Contents
- getProxyCode() : string
- Generates the code for the lazy proxy.
- getProxyFactoryCode() : string
- Generates the code to be used to instantiate a proxy in the dumped factory code.
- isProxyCandidate() : bool
- Inspects whether the given definitions should produce proxy instantiation logic in the dumped container.
Methods
getProxyCode()
Generates the code for the lazy proxy.
public
getProxyCode(Definition $definition) : string
Parameters
- $definition : Definition
Return values
string —getProxyFactoryCode()
Generates the code to be used to instantiate a proxy in the dumped factory code.
public
getProxyFactoryCode(Definition $definition, string $id, string $factoryCode) : string
Parameters
- $definition : Definition
- $id : string
- $factoryCode : string
Return values
string —isProxyCandidate()
Inspects whether the given definitions should produce proxy instantiation logic in the dumped container.
public
isProxyCandidate(Definition $definition) : bool
Parameters
- $definition : Definition