PHP Класс Go\Core\AspectKernel

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

Защищенные свойства (Protected)

Свойство Тип Описание
$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