28 $this->cache = $cache;
48 foreach ($services->configTable->getAll() as
$name =>
$value) {
53 foreach ($config::SENSITIVE_PROPERTIES as $name) {
60 $site = $data->getSite();
67 throw new RuntimeException(
'Before installation, config->site must have an unsaved ElggSite.');
71 $config->sitename = $site->name;
72 $config->sitedescription = $site->description;
74 foreach ($data->getPluginSettings() as
$guid => $entity_settings) {
75 $services->privateSettingsCache->save($guid, $entity_settings);
78 foreach ($data->getPluginMetadata() as $guid =>
$metadata) {
79 $services->dataCache->metadata->save($guid,
$metadata);
82 $services->plugins->setBootPlugins($data->getActivePlugins(),
false);
85 $debug =
$config->getInitialValue(
'debug') ?? (
$config->debug ?: LogLevel::CRITICAL);
86 $services->logger->setLevel($debug);
88 if (
$config->system_cache_enabled) {
89 $config->system_cache_loaded = $services->views->configureFromCache($services->serverCache);
99 $this->cache->clear();
117 $config->_boot_cache_hit =
false;
120 if ($config->boot_cache_ttl > 0) {
121 $data = $this->cache->load(
'boot_data');
127 if ($config->boot_cache_ttl && $installed) {
128 $this->cache->save(
'boot_data',
$data, $config->boot_cache_ttl);
131 $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
if(elgg_trigger_plugin_hook('usersettings:save', 'user', $hooks_params, true)) foreach($request->validation() ->all() as $item) $data
boot(InternalContainer $services)
Boots the engine.
$config
Advanced site settings, debugging section.
__construct(\ElggCache $cache)
Constructs the bootservice.
foreach($recommendedExtensions as $extension) if(empty(ini_get('session.gc_probability'))||empty(ini_get('session.gc_divisor'))) $db
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)