Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to disable the execution of a single aspect during runtime? #89

Open
tonix-tuft opened this issue Jan 8, 2015 · 0 comments

Comments

@tonix-tuft
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant