Documentation

No matching pages.

API

Config

Facade

Lifecycle

Class: Advised

Full name: Azera\Aop\Advised

Class-level marker attribute that opts a class into AOP proxy generation.

The ProxyFactory uses this as a fast-path check: if a class does NOT have this attribute, no proxy is created and the raw object is returned with zero overhead. This avoids scanning every method of every class for advice attributes.

Place on any class that has methods with advice attributes:

#[Advised]
class BillingService
{
    #[Transactional]
    public function chargeSubscription(Account $a): void { ... }

    #[Cache(ttl: 300)]
    public function loadProfile(User $u): Profile { ... }
}

Back to the Index