29 $this->cache = $cache;
49 foreach ($services->configTable->getAll() as
$name =>
$value) {
54 foreach ($config::SENSITIVE_PROPERTIES as $name) {
61 $site = $data->getSite();
68 throw new RuntimeException(
'Before installation, config->site must have an unsaved ElggSite.');
73 $services->dataCache->metadata->save($guid,
$metadata);
76 $services->plugins->setBootPlugins($data->getActivePlugins(),
false);
79 $debug =
$config->getInitialValue(
'debug') ?? (
$config->debug ?: LogLevel::CRITICAL);
80 $services->logger->setLevel($debug);
82 $services->views->configureFromCache();
91 $this->cache->clear();
104 private function getBootData(
Config $config,
bool $installed) {
107 $config->_boot_cache_hit =
false;
110 if ($config->boot_cache_ttl > 0) {
117 if ($config->boot_cache_ttl && $installed) {
118 $this->cache->
save(
'boot_data',
$data, $config->boot_cache_ttl);
121 $config->_boot_cache_hit =
true;
trait Profilable
Make an object accept a timer.
__construct(BaseCache $cache)
Constructs the bootservice.
Exception thrown if an error which can only be found on runtime occurs.
if(!$user||!$user->canDelete()) $name
boot(InternalContainer $services)
Boots the engine.
$config
Advanced site settings, debugging section.
if(!$entity instanceof\ElggUser) $data
load(stdClass $row)
Loads attributes from the entities table into the object.
The Elgg cache base class.
clearCache()
Clear the cache item.
beginTimer(array $keys)
Start the timer (when enabled)
Boots Elgg and manages a cache of data needed during boot.
Serializable collection of data used to boot Elgg.
_elgg_services()
Get the global service provider.
trait Cacheable
Utility trait for injecting cache.
$guid
Reset an ElggUpgrade.
endTimer(array $keys)
Ends the timer (when enabled)