PHP Интерфейс Go\Core\AspectLoaderExtension

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
getKind ( ) : string Return kind of loader, can be one of KIND_REFLECTION or KIND_ANNOTATION
getTarget ( ) : string | array Returns one or more target for loader, see TARGET_XXX constants
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

Описание методов

getKind() публичный Метод

For loader that works with annotations additional metaInformation will be passed
public getKind ( ) : string
Результат string

getTarget() публичный Метод

Returns one or more target for loader, see TARGET_XXX constants
public getTarget ( ) : string | array
Результат string | array

load() публичный Метод

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
Результат array | Go\Aop\Pointcut[] | Go\Aop\Advisor[]

supports() публичный Метод

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
Результат boolean true if extension is able to create an advisor from reflection and metaInformation