PHP 인터페이스 Go\Core\AspectLoaderExtension

파일 보기 프로젝트 열기: goaop/framework 0 사용 예제들

공개 메소드들

메소드 설명
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