Свойство | 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é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é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 |
protected __construct ( ) |
protected addKernelResourcesToContainer ( Go\Core\AspectContainer $container ) | ||
$container | Go\Core\AspectContainer |
abstract protected configureAop ( Go\Core\AspectContainer $container ) : void | ||
$container | Go\Core\AspectContainer | |
Résultat | void |
public getContainer ( ) : null | Go\Core\AspectContainer | ||
Résultat | null | Go\Core\AspectContainer |
protected getDefaultOptions ( ) : array | ||
Résultat | array |
public static getInstance ( ) : static | ||
Résultat | static |
public getOptions ( ) : array | ||
Résultat | array |
public hasFeature ( integer $featureToCheck ) : boolean | ||
$featureToCheck | integer | See Go\Aop\Features enumeration class for features |
Résultat | boolean | Whether specific feature enabled or not |
protected normalizeOptions ( array $options ) : array | ||
$options | array | List of options |
Résultat | array |
protected registerTransformers ( ) : array | Go\Instrument\Transformer\SourceTransformer[] | ||
Résultat | array | Go\Instrument\Transformer\SourceTransformer[] |
protected null|AspectContainer,Go\Core $container | ||
Résultat | null | Go\Core\AspectContainer |
protected static string $containerClass | ||
Résultat | string |
protected static null|static $instance | ||
Résultat | null | static |
protected bool $wasInitialized | ||
Résultat | boolean |