PHP Interface Go\Core\AspectContainer

Afficher le fichier Open project: goaop/framework Interface Usage Examples

Méthodes publiques

Méthode Description
addResource ( string $resource ) Add an AOP resource to the container
getAdvisor ( string $id ) : Go\Aop\Advisor Returns an advisor by identifier
getAspect ( string $aspectName ) : Go\Aop\Aspect Returns an aspect by id or class name
getByTag ( string $tag ) : array Return list of service tagged with marker
getPointcut ( string $id ) : Go\Aop\Pointcut Returns a pointcut by identifier
getResources ( ) : array Returns the list of AOP resources
isFresh ( integer $timestamp ) : boolean Checks the freshness of AOP cache
registerAdvisor ( Go\Aop\Advisor $advisor, string $id ) Store the advisor in the container
registerAspect ( Go\Aop\Aspect $aspect ) Register an aspect in the container
registerPointcut ( Go\Aop\Pointcut $pointcut, string $id ) Store the pointcut in the container

Method Details

addResource() public méthode

Add an AOP resource to the container
public addResource ( string $resource )
$resource string Path to the resource Resources is used to check the freshness of AOP cache

getAdvisor() public méthode

Returns an advisor by identifier
public getAdvisor ( string $id ) : Go\Aop\Advisor
$id string Advisor identifier
Résultat Go\Aop\Advisor

getAspect() public méthode

Returns an aspect by id or class name
public getAspect ( string $aspectName ) : Go\Aop\Aspect
$aspectName string Aspect name
Résultat Go\Aop\Aspect

getByTag() public méthode

Return list of service tagged with marker
public getByTag ( string $tag ) : array
$tag string Tag to select
Résultat array

getPointcut() public méthode

Returns a pointcut by identifier
public getPointcut ( string $id ) : Go\Aop\Pointcut
$id string Pointcut identifier
Résultat Go\Aop\Pointcut

getResources() public méthode

Returns the list of AOP resources
public getResources ( ) : array
Résultat array

isFresh() public méthode

Checks the freshness of AOP cache
public isFresh ( integer $timestamp ) : boolean
$timestamp integer
Résultat boolean Whether or not concrete file is fresh

registerAdvisor() public méthode

Store the advisor in the container
public registerAdvisor ( Go\Aop\Advisor $advisor, string $id )
$advisor Go\Aop\Advisor Instance
$id string Key for advisor

registerAspect() public méthode

Register an aspect in the container
public registerAspect ( Go\Aop\Aspect $aspect )
$aspect Go\Aop\Aspect Instance of concrete aspect

registerPointcut() public méthode

Store the pointcut in the container
public registerPointcut ( Go\Aop\Pointcut $pointcut, string $id )
$pointcut Go\Aop\Pointcut Instance
$id string Key for pointcut