Skip to content

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

@tonix-tuft

Description

@tonix-tuft

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions