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
No description
Shutdowns the kernel.
Ensures this kernel is the active kernel after or during nesting
No description
No description
Get loader for injector instance
No description
No description
No description
One of dev, live, or test
Sets new environment
Returns whether the Kernel has been flushed on boot
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
bool|null
isFlushed()
Returns whether the Kernel has been flushed on boot