Kernel
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.
$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
boot($flush = false)
shutdown()
Shutdowns the kernel.
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
Injector
getContainer()
ClassLoader
getClassLoader()
$this
setClassLoader(ClassLoader $classLoader)
InjectorLoader
getInjectorLoader()
Get loader for injector instance
$this
setInjectorLoader(InjectorLoader $injectorLoader)
ModuleLoader
getModuleLoader()
$this
setModuleLoader(ModuleLoader $moduleLoader)
ConfigLoader
getConfigLoader()
$this
setConfigLoader(ConfigLoader $configLoader)
ThemeResourceLoader
getThemeResourceLoader()
$this
setThemeResourceLoader(ThemeResourceLoader $themeResourceLoader)
string
getEnvironment()
One of dev, live, or test
$this
setEnvironment(string $environment)
Sets new environment