46 foreach ($services->configTable->getAll() as
$name =>
$value) {
51 foreach ($config::SENSITIVE_PROPERTIES as $name) {
58 $site = $data->getSite();
65 throw new RuntimeException(
'Before installation, config->site must have an unsaved ElggSite.');
70 $services->metadataCache->save($guid,
$metadata);
73 $services->plugins->setBootPlugins($data->getActivePlugins(),
false);
76 $debug =
$config->getInitialValue(
'debug') ?? (
$config->debug ?: LogLevel::CRITICAL);
77 $services->logger->setLevel($debug);
79 $services->views->configureFromCache();
88 $this->cache->clear();
101 private function getBootData(
Config $config,
bool $installed) {
104 $config->_boot_cache_hit =
false;
107 if ($config->boot_cache_ttl > 0) {
114 if ($config->boot_cache_ttl && $installed) {
115 $this->cache->
save(
'boot_data',
$data, $config->boot_cache_ttl);
118 $config->_boot_cache_hit =
true;
trait Profilable
Make an object accept a timer.
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
__construct(protected BootCache $cache)
Constructs the bootservice.
load(stdClass $row)
Loads attributes from the entities table into the object.
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.
$guid
Reset an ElggUpgrade.
endTimer(array $keys)
Ends the timer (when enabled)