3.2 Is it possible to enable / disable the execution of
aspects during runtime ?
Yes it is.
Is it possible to do the same for a single aspect registered during runtime? e.g. something like:
$pointcutId = aop_add_after('foo()', $adviceShowFoo);// ...and then somewhere else in the codeaop_disable_pointcut($pointcutId) // disabling the pointcut
// ...and then somewhere else in the code yetaop_enable_pointcut($pointcut); // enabling the pointcut again
Hi, reading the documentation, at the end:
3.2 Is it possible to enable / disable the execution of aspects during runtime ? Yes it is.
Is it possible to do the same for a single aspect registered during runtime? e.g. something like:
$pointcutId = aop_add_after('foo()', $adviceShowFoo); // ...and then somewhere else in the code aop_disable_pointcut($pointcutId) // disabling the pointcut // ...and then somewhere else in the code yet aop_enable_pointcut($pointcut); // enabling the pointcut again
Can we achieve this?