Method | 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 |
Method | Description | |
---|---|---|
getInterceptor ( $metaInformation, $adviceCallback ) : Go\Aop\Intercept\Interceptor |
protected getInterceptor ( $metaInformation, $adviceCallback ) : Go\Aop\Intercept\Interceptor | ||
$metaInformation | ||
$adviceCallback | ||
return | Go\Aop\Intercept\Interceptor |
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 |
return | array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] |
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 |
return | boolean | true if extension is able to create an advisor from reflection and metaInformation |