PHP 클래스 Go\Core\AspectKernel

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

보호된 프로퍼티들

프로퍼티 타입 설명
$container null | Go\Core\AspectContainer Aspect container instance
$containerClass string Default class name for container, can be redefined in children
$instance null | static Single instance of kernel
$options array Kernel options
$wasInitialized boolean Flag to determine if kernel was already initialized or not

공개 메소드들

메소드 설명
getContainer ( ) : null | Go\Core\AspectContainer Returns an aspect container
getInstance ( ) : static Returns the single instance of kernel
getOptions ( ) : array Returns list of kernel options
hasFeature ( integer $featureToCheck ) : boolean Checks if kernel configuration has enabled specific feature
init ( array $options = [] ) Init the kernel and make adjustments

보호된 메소드들

메소드 설명
__construct ( ) Protected constructor is used to prevent direct creation, but allows customization if needed
addKernelResourcesToContainer ( Go\Core\AspectContainer $container ) Add resources for kernel
configureAop ( Go\Core\AspectContainer $container ) : void Configure an AspectContainer with advisors, aspects and pointcuts
getDefaultOptions ( ) : array Returns default options for kernel. Available options:
normalizeOptions ( array $options ) : array Normalizes options for the kernel
registerTransformers ( ) : array | Go\Instrument\Transformer\SourceTransformer[] Returns list of source transformers, that will be applied to the PHP source

메소드 상세

__construct() 보호된 메소드

Protected constructor is used to prevent direct creation, but allows customization if needed
protected __construct ( )

addKernelResourcesToContainer() 보호된 메소드

Add resources for kernel
protected addKernelResourcesToContainer ( Go\Core\AspectContainer $container )
$container Go\Core\AspectContainer

configureAop() 추상적인 보호된 메소드

Configure an AspectContainer with advisors, aspects and pointcuts
abstract protected configureAop ( Go\Core\AspectContainer $container ) : void
$container Go\Core\AspectContainer
리턴 void

getContainer() 공개 메소드

Returns an aspect container
public getContainer ( ) : null | Go\Core\AspectContainer
리턴 null | Go\Core\AspectContainer

getDefaultOptions() 보호된 메소드

debug - boolean Determines whether or not kernel is in debug mode appDir - string Path to the application root directory. cacheDir - string Path to the cache directory where compiled classes will be stored cacheFileMode - integer Binary mask of permission bits that is set to cache files features - integer Binary mask of features includePaths - array Whitelist of directories where aspects should be applied. Empty for everywhere. excludePaths - array Blacklist of directories or files where aspects shouldn't be applied.
protected getDefaultOptions ( ) : array
리턴 array

getInstance() 공개 정적인 메소드

Returns the single instance of kernel
public static getInstance ( ) : static
리턴 static

getOptions() 공개 메소드

Returns list of kernel options
public getOptions ( ) : array
리턴 array

hasFeature() 공개 메소드

Checks if kernel configuration has enabled specific feature
public hasFeature ( integer $featureToCheck ) : boolean
$featureToCheck integer See Go\Aop\Features enumeration class for features
리턴 boolean Whether specific feature enabled or not

init() 공개 메소드

Init the kernel and make adjustments
public init ( array $options = [] )
$options array Associative array of options for kernel

normalizeOptions() 보호된 메소드

Normalizes options for the kernel
protected normalizeOptions ( array $options ) : array
$options array List of options
리턴 array

registerTransformers() 보호된 메소드

Returns list of source transformers, that will be applied to the PHP source
protected registerTransformers ( ) : array | Go\Instrument\Transformer\SourceTransformer[]
리턴 array | Go\Instrument\Transformer\SourceTransformer[]

프로퍼티 상세

$container 보호되어 있는 프로퍼티

Aspect container instance
protected null|AspectContainer,Go\Core $container
리턴 null | Go\Core\AspectContainer

$containerClass 보호되어 있는 정적으로 프로퍼티

Default class name for container, can be redefined in children
protected static string $containerClass
리턴 string

$instance 보호되어 있는 정적으로 프로퍼티

Single instance of kernel
protected static null|static $instance
리턴 null | static

$options 보호되어 있는 프로퍼티

Kernel options
protected array $options
리턴 array

$wasInitialized 보호되어 있는 프로퍼티

Flag to determine if kernel was already initialized or not
protected bool $wasInitialized
리턴 boolean