interface Kernel

Represents the core state of a SilverStripe application Based loosely on symfony/http-kernel's KernelInterface component

Constants

TEST

Test environment

DEV

Dev environment

LIVE

Live (default) environment

Methods

boot($flush = false)

No description

shutdown()

Shutdowns the kernel.

nest()

Nests this kernel, all components, and returns the nested value.

$this
activate()

Ensures this kernel is the active kernel after or during nesting

getContainer()

No description

getClassLoader()

No description

$this
setClassLoader(ClassLoader $classLoader)

No description

getInjectorLoader()

Get loader for injector instance

$this
setInjectorLoader(InjectorLoader $injectorLoader)

No description

getModuleLoader()

No description

$this
setModuleLoader(ModuleLoader $moduleLoader)

No description

getConfigLoader()

No description

$this
setConfigLoader(ConfigLoader $configLoader)

No description

$this
setThemeResourceLoader(ThemeResourceLoader $themeResourceLoader)

No description

string
getEnvironment()

One of dev, live, or test

$this
setEnvironment(string $environment)

Sets new environment

Details

at line 38
boot($flush = false)

Parameters

$flush

at line 43
shutdown()

Shutdowns the kernel.

at line 50
Kernel nest()

Nests this kernel, all components, and returns the nested value.

Return Value

Kernel

at line 57
$this activate()

Ensures this kernel is the active kernel after or during nesting

Return Value

$this

at line 62
Injector getContainer()

Return Value

Injector

at line 67
ClassLoader getClassLoader()

Return Value

ClassLoader

at line 73
$this setClassLoader(ClassLoader $classLoader)

Parameters

ClassLoader $classLoader

Return Value

$this

at line 80
InjectorLoader getInjectorLoader()

Get loader for injector instance

Return Value

InjectorLoader

at line 86
$this setInjectorLoader(InjectorLoader $injectorLoader)

Parameters

InjectorLoader $injectorLoader

Return Value

$this

at line 91
ModuleLoader getModuleLoader()

Return Value

ModuleLoader

at line 97
$this setModuleLoader(ModuleLoader $moduleLoader)

Parameters

ModuleLoader $moduleLoader

Return Value

$this

at line 102
ConfigLoader getConfigLoader()

Return Value

ConfigLoader

at line 108
$this setConfigLoader(ConfigLoader $configLoader)

Parameters

ConfigLoader $configLoader

Return Value

$this

at line 113
ThemeResourceLoader getThemeResourceLoader()

Return Value

ThemeResourceLoader

at line 119
$this setThemeResourceLoader(ThemeResourceLoader $themeResourceLoader)

Parameters

ThemeResourceLoader $themeResourceLoader

Return Value

$this

at line 126
string getEnvironment()

One of dev, live, or test

Return Value

string

at line 134
$this setEnvironment(string $environment)

Sets new environment

Parameters

string $environment

Return Value

$this