CoreKernel
class CoreKernel extends BaseKernel (View source)
Simple Kernel container
Properties
| protected | Kernel | $nestedFrom | from BaseKernel | |
| protected | Injector | $container | from BaseKernel | |
| protected | string | $enviroment | from BaseKernel | |
| protected | ClassLoader | $classLoader | from BaseKernel | |
| protected | ModuleLoader | $moduleLoader | from BaseKernel | |
| protected | ConfigLoader | $configLoader | from BaseKernel | |
| protected | InjectorLoader | $injectorLoader | from BaseKernel | |
| protected | ThemeResourceLoader | $themeResourceLoader | from BaseKernel | |
| protected | $basePath | from BaseKernel | ||
| protected | bool | $bootDatabase | 
Methods
Check if there's a legacy _ss_environment.php file
If missing configuration, redirect to install.php if it exists.
Ensures this kernel is the active kernel after or during nesting
Validate configuration of the application is in a good state, ready for use.
Check that the database configuration is valid, throwing an HTTPResponse_Exception if it's not
Load default database configuration from the $database and $databaseConfig globals
Details
        
                            
    __construct(string $basePath)
        
    
    Create a new kernel for this application
        
                    protected        
    bootPHP()
        
    
    Initialise PHP with default variables
        
                    protected        
    bootManifests(bool $flush)
        
    
    Boot all manifests
        
                    protected        
    bootConfigs()
        
    
    Include all _config.php files
        
                    protected        
    bootErrorHandling()
        
    
    Turn on error handling
        
                            string
    getEnvironment()
        
    
    Get the environment type
        
                            
    boot($flush = false)
        
    
    No description
        
                            bool|null
    isFlushed()
        
    
    Returns whether the Kernel has been flushed on boot
        
                    protected        
    detectLegacyEnvironment()
        
    
    Check if there's a legacy _ss_environment.php file
        
                    protected        
    redirectToInstaller(string $msg = '')
        deprecated
    
    deprecated
If missing configuration, redirect to install.php if it exists.
Otherwise show a server error to the user.
        
                    protected        ManifestCacheFactory
    buildManifestCacheFactory()
        
    
    No description
        
                    protected        bool
    getIncludeTests()
        
    
    No description
        
                    protected        void
    setBooted(bool $bool)
        
    
    No description
        
                            bool
    getBooted()
        
    
    Check whether the kernel has booted or not
        
                            
    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
        
                            
    getNestedFrom()
        
    
    No description
        
                            Injector
    getContainer()
        
    
    No description
        
                            $this
    setInjectorLoader(InjectorLoader $injectorLoader)
        
    
    No description
        
                            InjectorLoader
    getInjectorLoader()
        
    
    Get loader for injector instance
        
                            ClassLoader
    getClassLoader()
        
    
    No description
        
                            $this
    setClassLoader(ClassLoader $classLoader)
        
    
    No description
        
                            ModuleLoader
    getModuleLoader()
        
    
    No description
        
                            $this
    setModuleLoader(ModuleLoader $moduleLoader)
        
    
    No description
        
                            $this
    setEnvironment(string $environment)
        
    
    Sets new environment
        
                            ConfigLoader
    getConfigLoader()
        
    
    No description
        
                            $this
    setConfigLoader(ConfigLoader $configLoader)
        
    
    No description
        
                            ThemeResourceLoader
    getThemeResourceLoader()
        
    
    No description
        
                            $this
    setThemeResourceLoader(ThemeResourceLoader $themeResourceLoader)
        
    
    No description
        
                    protected        void
    validateConfiguration()
        
    
    Validate configuration of the application is in a good state, ready for use.
This method can be used to warn developers of any misconfiguration, or configuration which is missing but should be set according to best practice.
In some cases, this could be used to halt execution if configuration critical to operation has not been set.
        
                            CoreKernel
    setBootDatabase(bool $bool)
        
    
    Set whether the database should boot or not.
        
                    protected        
    validateDatabase()
        
    
    Check that the database configuration is valid, throwing an HTTPResponse_Exception if it's not
        
                    protected        
    bootDatabaseGlobals()
        
    
    Load default database configuration from the $database and $databaseConfig globals
        
                    protected        
    bootDatabaseEnvVars()
        
    
    Load default database configuration from environment variable
        
                    protected        array
    getDatabaseConfig()
        
    
    Load database config from environment
        
                    protected        string
    getDatabasePrefix()
        
    
    No description
        
                    protected        string
    getDatabaseSuffix()
        
    
    No description
        
                    protected        string
    getDatabaseName()
        
    
    Get name of database