NullDumper

NullDumper

class NullDumper implements DumperInterface

Null dumper, negates any proxy code generation for any given service definition.

Methods

bool isProxyCandidate(Definition $definition)

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

string getProxyFactoryCode(Definition $definition, $id, $methodName = null)

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

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, $id, $methodName = null)

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

Parameters

Definition $definition
$id
$methodName

Return Value

string

string getProxyCode(Definition $definition)

Generates the code for the lazy proxy.

Parameters

Definition $definition

Return Value

string
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部