LazyServiceDumper
in package
implements
DumperInterface
FinalYes
Tags
Table of Contents
Interfaces
- DumperInterface
- Lazy proxy dumper capable of generating the instantiation logic PHP code for proxied services.
Properties
- $salt : string
Methods
- __construct() : mixed
- getProxyClass() : string
- 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.
Properties
$salt
private
string
$salt
= ''
Methods
__construct()
public
__construct([string $salt = '' ]) : mixed
Parameters
- $salt : string = ''
getProxyClass()
public
getProxyClass(Definition $definition, bool $asGhostObject[, ReflectionClass|null &$class = null ]) : string
Parameters
- $definition : Definition
- $asGhostObject : bool
- $class : ReflectionClass|null = null
Return values
stringgetProxyCode()
Generates the code for the lazy proxy.
public
getProxyCode(Definition $definition[, string|null $id = null ]) : string
Parameters
- $definition : Definition
- $id : string|null = null
Return values
stringgetProxyFactoryCode()
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
stringisProxyCandidate()
Inspects whether the given definitions should produce proxy instantiation logic in the dumped container.
public
isProxyCandidate(Definition $definition[, bool|null &$asGhostObject = null ][, string|null $id = null ]) : bool
Parameters
- $definition : Definition
- $asGhostObject : bool|null = null
- $id : string|null = null