You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, pointcut can be referenced only by full name:
/** * Pointcut for example class * * @Pointcut("execution(public Demo\Example\General->*(*))") */protectedfunctionexamplePublicMethods() {}
/** * Method that should be called before real method * * @param MethodInvocation $invocation Invocation * @Before("Demo\Aspect\DebugAspect->examplePublicMethods") */
This prevents from using of abstract pointcuts and make it harder to write FQN of aspect without auto-completion.
New feature allows to use $this instead of FQN of aspect:
/** * Method that should be called before real method * * @param MethodInvocation $invocation Invocation * @Before("$this->examplePublicMethods") */
The text was updated successfully, but these errors were encountered:
Currently, pointcut can be referenced only by full name:
This prevents from using of abstract pointcuts and make it harder to write FQN of aspect without auto-completion.
New feature allows to use
$this
instead of FQN of aspect:The text was updated successfully, but these errors were encountered: