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
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: