Kernel
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.
$this
activate()
Ensures this kernel is the active kernel after or during nesting
getContainer()
No description
getClassLoader()
No description
$this
getInjectorLoader()
Get loader for injector instance
$this
getModuleLoader()
No description
$this
getConfigLoader()
No description
$this
getThemeResourceLoader()
No description
$this
string
getEnvironment()
One of dev, live, or test
$this
setEnvironment(string $environment)
Sets new environment
Details
at line 38
boot($flush = false)
at line 43
shutdown()
Shutdowns the kernel.
at line 50
Kernel
nest()
Nests this kernel, all components, and returns the nested value.
at line 57
$this
activate()
Ensures this kernel is the active kernel after or during nesting
at line 62
Injector
getContainer()
at line 67
ClassLoader
getClassLoader()
at line 73
$this
setClassLoader(ClassLoader $classLoader)
at line 80
InjectorLoader
getInjectorLoader()
Get loader for injector instance
at line 86
$this
setInjectorLoader(InjectorLoader $injectorLoader)
at line 91
ModuleLoader
getModuleLoader()
at line 97
$this
setModuleLoader(ModuleLoader $moduleLoader)
at line 102
ConfigLoader
getConfigLoader()
at line 108
$this
setConfigLoader(ConfigLoader $configLoader)
at line 113
ThemeResourceLoader
getThemeResourceLoader()
at line 119
$this
setThemeResourceLoader(ThemeResourceLoader $themeResourceLoader)
at line 126
string
getEnvironment()
One of dev, live, or test
at line 134
$this
setEnvironment(string $environment)
Sets new environment