Property | Type | Description | |
---|---|---|---|
$annotationReader | Doctrine\Common\Annotations\Reader | null | Annotation reader for aspects | |
$container | null | Go\Core\AspectContainer | Aspect container instance | |
$loadedAspects | array | List of aspects that was loaded | |
$loaders | array | List of aspect loaders |
Method | Description | |
---|---|---|
__construct ( Go\Core\AspectContainer $container, Doctrine\Common\Annotations\Reader $reader ) | Loader constructor | |
getUnloadedAspects ( ) : array | Go\Aop\Aspect[] | Returns list of unloaded aspects in the container | |
load ( Go\Aop\Aspect $aspect ) : array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] | Loads an aspect with the help of aspect loaders, but don't register it in the container | |
loadAndRegister ( Go\Aop\Aspect $aspect ) | Loads and register all items of aspect in the container | |
registerLoaderExtension ( Go\Core\AspectLoaderExtension $loader ) | Register an aspect loader extension |
Method | Description | |
---|---|---|
getAnnotations ( ReflectionClass | ReflectionMethod | ReflectionProperty $refPoint ) : array | Return list of annotations for reflection point | |
loadFrom ( Go\Aop\Aspect $aspect, ReflectionClass | ReflectionMethod | ReflectionProperty $refPoint, array $loaders ) : array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] | Load definitions from specific aspect part into the aspect container |
public __construct ( Go\Core\AspectContainer $container, Doctrine\Common\Annotations\Reader $reader ) | ||
$container | Go\Core\AspectContainer | Instance of container to store pointcuts and advisors |
$reader | Doctrine\Common\Annotations\Reader | Reader for annotations that is used for aspects |
protected getAnnotations ( ReflectionClass | ReflectionMethod | ReflectionProperty $refPoint ) : array | ||
$refPoint | ReflectionClass | ReflectionMethod | ReflectionProperty | Reflection instance |
return | array | list of annotations |
public getUnloadedAspects ( ) : array | Go\Aop\Aspect[] | ||
return | array | Go\Aop\Aspect[] |
public loadAndRegister ( Go\Aop\Aspect $aspect ) | ||
$aspect | Go\Aop\Aspect |
protected loadFrom ( Go\Aop\Aspect $aspect, ReflectionClass | ReflectionMethod | ReflectionProperty $refPoint, array $loaders ) : array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] | ||
$aspect | Go\Aop\Aspect | Aspect instance |
$refPoint | ReflectionClass | ReflectionMethod | ReflectionProperty | Reflection instance |
$loaders | array | List of loaders that can produce advisors from aspect class |
return | array | Go\Aop\Pointcut[] | Go\Aop\Advisor[] |
public registerLoaderExtension ( Go\Core\AspectLoaderExtension $loader ) | ||
$loader | Go\Core\AspectLoaderExtension | Loader to register |
protected Reader,Doctrine\Common\Annotations|null $annotationReader | ||
return | Doctrine\Common\Annotations\Reader | null |
protected null|AspectContainer,Go\Core $container | ||
return | null | Go\Core\AspectContainer |
protected array $loadedAspects | ||
return | array |