PHP Class Go\Core\GeneralAspectLoaderExtension

Inheritance: extends AbstractAspectLoaderExtension
Afficher le fichier Open project: goaop/framework

Méthodes publiques

Méthode Description
getKind ( ) : string General aspect loader works with annotations from aspect
getTarget ( ) : string | array General aspect loader works only with methods of aspect
load ( Go\Aop\Aspect $aspect, mixed | ReflectionClass | ReflectionMethod | ReflectionProperty $reflection, mixed | null $metaInformation = null ) : array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] Loads definition from specific point of aspect into the container
supports ( Go\Aop\Aspect $aspect, mixed | ReflectionClass | ReflectionMethod | ReflectionProperty $reflection, mixed | null $metaInformation = null ) : boolean Checks if loader is able to handle specific point of aspect

Méthodes protégées

Méthode Description
getInterceptor ( $metaInformation, $adviceCallback ) : Go\Aop\Intercept\Interceptor

Method Details

getInterceptor() protected méthode

protected getInterceptor ( $metaInformation, $adviceCallback ) : Go\Aop\Intercept\Interceptor
$metaInformation
$adviceCallback
Résultat Go\Aop\Intercept\Interceptor

getKind() public méthode

For extension that works with annotations additional metaInformation will be passed
public getKind ( ) : string
Résultat string

getTarget() public méthode

General aspect loader works only with methods of aspect
public getTarget ( ) : string | array
Résultat string | array

load() public méthode

Loads definition from specific point of aspect into the container
public load ( Go\Aop\Aspect $aspect, mixed | ReflectionClass | ReflectionMethod | ReflectionProperty $reflection, mixed | null $metaInformation = null ) : array | Go\Aop\Pointcut[] | Go\Aop\Advisor[]
$aspect Go\Aop\Aspect Instance of aspect
$reflection mixed | ReflectionClass | ReflectionMethod | ReflectionProperty Reflection of point
$metaInformation mixed | null Additional meta-information, e.g. annotation for method
Résultat array | Go\Aop\Pointcut[] | Go\Aop\Advisor[]

supports() public méthode

Checks if loader is able to handle specific point of aspect
public supports ( Go\Aop\Aspect $aspect, mixed | ReflectionClass | ReflectionMethod | ReflectionProperty $reflection, mixed | null $metaInformation = null ) : boolean
$aspect Go\Aop\Aspect Instance of aspect
$reflection mixed | ReflectionClass | ReflectionMethod | ReflectionProperty Reflection of point
$metaInformation mixed | null Additional meta-information, e.g. annotation for method
Résultat boolean true if extension is able to create an advisor from reflection and metaInformation