PHP Class Go\Core\AspectKernel

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

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
__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

Method Details

__construct() protected méthode

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

addKernelResourcesToContainer() protected méthode

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

configureAop() abstract protected méthode

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

getContainer() public méthode

Returns an aspect container
public getContainer ( ) : null | Go\Core\AspectContainer
Résultat null | Go\Core\AspectContainer

getDefaultOptions() protected méthode

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
Résultat array

getInstance() public static méthode

Returns the single instance of kernel
public static getInstance ( ) : static
Résultat static

getOptions() public méthode

Returns list of kernel options
public getOptions ( ) : array
Résultat array

hasFeature() public méthode

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

init() public méthode

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

normalizeOptions() protected méthode

Normalizes options for the kernel
protected normalizeOptions ( array $options ) : array
$options array List of options
Résultat array

registerTransformers() protected méthode

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

Property Details

$container protected_oe property

Aspect container instance
protected null|AspectContainer,Go\Core $container
Résultat null | Go\Core\AspectContainer

$containerClass protected_oe static_oe property

Default class name for container, can be redefined in children
protected static string $containerClass
Résultat string

$instance protected_oe static_oe property

Single instance of kernel
protected static null|static $instance
Résultat null | static

$options protected_oe property

Kernel options
protected array $options
Résultat array

$wasInitialized protected_oe property

Flag to determine if kernel was already initialized or not
protected bool $wasInitialized
Résultat boolean