PHP Class Demo\Aspect\DynamicMethodsAspect

Inheritance: implements Go\Aop\Aspect
Datei anzeigen Open project: goaop/framework

Public Methods

Method Description
beforeMagicMethodExecution ( Go\Aop\Intercept\MethodInvocation $invocation ) This advice intercepts an execution of __call methods
beforeMagicStaticMethodExecution ( Go\Aop\Intercept\MethodInvocation $invocation ) This advice intercepts an execution of methods via __callStatic

Method Details

beforeMagicMethodExecution() public method

Unlike traditional "execution" pointcut, "dynamic" is checking the name of method in the runtime, allowing to write interceptors for __call more transparently.
public beforeMagicMethodExecution ( Go\Aop\Intercept\MethodInvocation $invocation )
$invocation Go\Aop\Intercept\MethodInvocation Invocation

beforeMagicStaticMethodExecution() public method

This advice intercepts an execution of methods via __callStatic
public beforeMagicStaticMethodExecution ( Go\Aop\Intercept\MethodInvocation $invocation )
$invocation Go\Aop\Intercept\MethodInvocation