Skip to content

Add support for annotations #88

@texdc

Description

@texdc

I'd like to design classes with advice in the docblocks something like:

/**
 * @@around \TestLib\debug
 */
class Foo
{
    /**
     * @@before \AuthorizationLib\authorize
     */
    public function bar()
    {
        // ...
    }

    /**
     * @@after \LogLib\log
     */
    public function baz()
    {
         // ...
    }
}

Maybe @@ will help to distinguish between advice and documentation. Thanks!

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