interface Kernel (View source)

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

boot($flush = false)

Parameters

$flush

shutdown()

Shutdowns the kernel.

Kernel nest()

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

Return Value

Kernel

$this activate()

Ensures this kernel is the active kernel after or during nesting

Return Value

$this

Injector getContainer()

Return Value

Injector

ClassLoader getClassLoader()

Return Value

ClassLoader

$this setClassLoader(ClassLoader $classLoader)

Parameters

ClassLoader $classLoader

Return Value

$this

InjectorLoader getInjectorLoader()

Get loader for injector instance

Return Value

InjectorLoader

$this setInjectorLoader(InjectorLoader $injectorLoader)

Parameters

InjectorLoader $injectorLoader

Return Value

$this

ModuleLoader getModuleLoader()

Return Value

ModuleLoader

$this setModuleLoader(ModuleLoader $moduleLoader)

Parameters

ModuleLoader $moduleLoader

Return Value

$this

ConfigLoader getConfigLoader()

Return Value

ConfigLoader

$this setConfigLoader(ConfigLoader $configLoader)

Parameters

ConfigLoader $configLoader

Return Value

$this

ThemeResourceLoader getThemeResourceLoader()

Return Value

ThemeResourceLoader

$this setThemeResourceLoader(ThemeResourceLoader $themeResourceLoader)

Parameters

ThemeResourceLoader $themeResourceLoader

Return Value

$this

string getEnvironment()

One of dev, live, or test

Return Value

string

$this setEnvironment(string $environment)

Sets new environment

Parameters

string $environment

Return Value

$this