[Flow] Pointcut combination of classAnootatedWith and method
Christian Loock
chl at vkf-renzel.de
Thu May 22 16:58:36 CEST 2014
Ok, neermind. It was a caching issue.
On 22.05.2014 16:43, Christian Loock wrote:
> Woops,
>
> this was the wrong one, here is the right Poincut:
>
> @Flow\Around("method(public .*->execute()) &&
> classAnnotatedWith(VKF\Deployment\Annotations\AllowedTargetNodeType)")
>
>
> On 22.05.2014 16:25, Christian Loock wrote:
>> Hello,
>>
>> I want to write an advice that wraps around all methods of classes
>> that have a certain Annotation and a certain methodname. This is what
>> i try:
>>
>> /**
>> * @param \TYPO3\Flow\Aop\JoinPoint $joinPoint
>> * @Flow\Around("class(VKF\Deployment\Task\CopyLiveDatabaseTask)
>> && method(public .*->execute())")
>> */
>> public function
>> limitTaskExecutionByNodeType(\TYPO3\Flow\Aop\JoinPoint $joinPoint) {
>> \TYPO3\Flow\var_dump($joinPoint);
>> die;
>>
>> }
>>
>>
>> However, it wont work. Does anybody know what is wrong?
>>
>
--
Christian Loock
Web Developer
Renzel Agentur
www.renzel-agentur.de
More information about the Flow
mailing list