interface DumperInterface

Lazy proxy dumper capable of generating the instantiation logic PHP code for proxied services.

Methods

bool
isProxyCandidate(Definition$definition,bool$asGhostObject =null,string$id =null)

Inspects whether the given definitions should produce proxy instantiation logic in the dumped container.

string
getProxyFactoryCode(Definition$definition,string$id,string$factoryCode)

Generates the code to be used to instantiate a proxy in the dumped factory code.

string
getProxyCode(Definition$definition,string$id =null)

Generates the code for the lazy proxy.

Details

bool isProxyCandidate(Definition$definition,bool$asGhostObject =null,string$id =null)

Inspects whether the given definitions should produce proxy instantiation logic in the dumped container.

Parameters

Definition $definition
bool $asGhostObject
string $id

Return Value

bool

string getProxyFactoryCode(Definition$definition,string$id,string$factoryCode)

Generates the code to be used to instantiate a proxy in the dumped factory code.

Parameters

Definition $definition
string $id
string $factoryCode

Return Value

string

string getProxyCode(Definition$definition,string$id =null)

Generates the code for the lazy proxy.

Parameters

Definition $definition
string $id

Return Value

string