An aspect kernel manages a set of aspects.

The aspect kernel is used to tell Go! AOP about every \FeaturePhp\Aspect\Aspect from selected artifacts (see \FeaturePhp\Generator\AspectGenerator). To use it, include the generated aspect kernel into the application and call its init method (see https://github.com/goaop/framework).

package Default

 Methods

Creates an aspect kernel.

__construct() 

Adds an aspect to the aspect kernel.

addAspect(\FeaturePhp\Aspect\Aspect $aspect) 

Parameters

$aspect

\FeaturePhp\Aspect\Aspect

Generates the aspect kernel's files.

generateFiles(string $class, string $target) 

This includes all aspect files and the aspect kernel itself.

Parameters

$class

string

$target

string

 Properties

 

all aspects registered in the aspect kernel

$aspects : array<mixed,\FeaturePhp\Aspect\Aspect>

Default