mediatekformation

ProxyDumper
in package
implements DumperInterface

Generates dumped PHP code of proxies via reflection.

Tags
author

Marco Pivetta ocramius@gmail.com

final

Interfaces, Classes, Traits and Enums

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

Table of Contents

$classGenerator  : mixed
$proxyGenerator  : mixed
$salt  : mixed
__construct()  : mixed
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.
generateProxyClass()  : ClassGenerator
getIdentifierSuffix()  : string
getProxyClassName()  : string
Produces the proxy class name for the given definition.

Properties

Methods

__construct()

public __construct([string $salt = '' ]) : mixed
Parameters
$salt : string = ''
Return values
mixed

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, mixed $id[, mixed $factoryCode = null ]) : string
Parameters
$definition : Definition
$id : mixed
$factoryCode : mixed = null
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
Return values
bool

getProxyClassName()

Produces the proxy class name for the given definition.

private getProxyClassName(Definition $definition) : string
Parameters
$definition : Definition
Return values
string

Search results