class AopProxy

Class AopProxy

Traits

Class AopProxyAwareTrait - AOP 切面编程

Properties

protected array $proxyMap

Methods

proxy($class, $method = null, array $args = [])

No description

mixed
call(string $method, array $args = [])

No description

mixed
__call(string $method, array $args = [])

No description

$this|mixed
__invoke(array ...$args)

No description

null|array
findProxyCallback($target, string $method, string $prefix = 'before')

No description

$this
register($key, $handler, string $position = 'before')

No description

$this
addProxy(string $key, callable $handler, string $position = 'before')

No description

$this
addProxies(array $map)

No description

static array
getProxyPoints()

No description

mixed
getProxyTarget()

No description

array
getProxyMap()

No description

setProxyMap(array $proxyMap)

No description

__construct(array $proxyMap = [])

AopProxy constructor.

Details

in AopProxyAwareTrait at line 36
proxy($class, $method = null, array $args = [])

Parameters

$class
$method
array $args

in AopProxyAwareTrait at line 53
mixed call(string $method, array $args = [])

Parameters

string $method
array $args

Return Value

mixed

Exceptions

LogicException

in AopProxyAwareTrait at line 87
mixed __call(string $method, array $args = [])

Parameters

string $method
array $args

Return Value

mixed

in AopProxyAwareTrait at line 97
$this|mixed __invoke(array ...$args)

Parameters

array ...$args

Return Value

$this|mixed

Exceptions

InvalidArgumentException

in AopProxyAwareTrait at line 123
protected null|array findProxyCallback($target, string $method, string $prefix = 'before')

Parameters

$target
string $method
string $prefix

Return Value

null|array

in AopProxyAwareTrait at line 140
$this register($key, $handler, string $position = 'before')

Parameters

$key
$handler
string $position

Return Value

$this

See also

addProxy()

in AopProxyAwareTrait at line 151
$this addProxy(string $key, callable $handler, string $position = 'before')

Parameters

string $key eg 'XyzClass::method'
callable $handler
string $position 'before' 'after'

Return Value

$this

in AopProxyAwareTrait at line 167
$this addProxies(array $map)

Parameters

array $map

Return Value

$this

in AopProxyAwareTrait at line 190
static array getProxyPoints()

Return Value

array

in AopProxyAwareTrait at line 198
mixed getProxyTarget()

Return Value

mixed

in AopProxyAwareTrait at line 206
array getProxyMap()

Return Value

array

in AopProxyAwareTrait at line 214
setProxyMap(array $proxyMap)

Parameters

array $proxyMap

at line 50
__construct(array $proxyMap = [])

AopProxy constructor.

Parameters

array $proxyMap