BaseKernel
abstract class BaseKernel implements Kernel (View source)
Simple Kernel container
Properties
protected | Kernel | $nestedFrom | ||
protected | Injector | $container | ||
protected | string | $enviroment | ||
protected | ClassLoader | $classLoader | ||
protected | ModuleLoader | $moduleLoader | ||
protected | ConfigLoader | $configLoader | ||
protected | InjectorLoader | $injectorLoader | ||
protected | ThemeResourceLoader | $themeResourceLoader | ||
protected | $basePath |
Methods
If missing configuration, redirect to install.php if it exists.
When manifests are discovering files, tests files in modules using the following CI library type will be ignored.
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
protected null|string
sessionEnvironment()
deprecated
deprecated
Check or update any temporary environment specified in the session.
abstract
boot($flush = false)
No description
abstract
isFlushed()
No description
protected
detectLegacyEnvironment()
Check if there's a legacy _ss_environment.php file
protected
redirectToInstaller(string $msg = '')
If missing configuration, redirect to install.php if it exists.
Otherwise show a server error to the user.
protected ManifestCacheFactory
buildManifestCacheFactory()
No description
protected array
getIgnoredCIConfigs()
deprecated
deprecated
When manifests are discovering files, tests files in modules using the following CI library type will be ignored.
The purpose of this method is to avoid loading PHPUnit test files with incompatible definitions.
protected bool
getIncludeTests()
No description
protected void
setBooted(bool $bool)
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
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