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
Details
        
                            
    boot($flush = false)
        
    
    No description
        
                            
    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()
        
    
    No description
        
                            ClassLoader
    getClassLoader()
        
    
    No description
        
                            $this
    setClassLoader(ClassLoader $classLoader)
        
    
    No description
        
                            InjectorLoader
    getInjectorLoader()
        
    
    Get loader for injector instance
        
                            $this
    setInjectorLoader(InjectorLoader $injectorLoader)
        
    
    No description
        
                            ModuleLoader
    getModuleLoader()
        
    
    No description
        
                            $this
    setModuleLoader(ModuleLoader $moduleLoader)
        
    
    No description
        
                            ConfigLoader
    getConfigLoader()
        
    
    No description
        
                            $this
    setConfigLoader(ConfigLoader $configLoader)
        
    
    No description
        
                            ThemeResourceLoader
    getThemeResourceLoader()
        
    
    No description
        
                            $this
    setThemeResourceLoader(ThemeResourceLoader $themeResourceLoader)
        
    
    No description
        
                            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