46 foreach ($services->configTable->getAll() as
$name =>
$value) {
51 foreach ($config::SENSITIVE_PROPERTIES as
$name) {
57 $services->reset(
'serverCache');
69 throw new RuntimeException(
'Before installation, config->site must have an unsaved ElggSite.');
77 $services->plugins->setBootPlugins(
$data->getActivePlugins(),
false);
80 $debug =
$config->getInitialValue(
'debug') ?? (
$config->debug ?: LogLevel::CRITICAL);
81 $services->logger->setLevel($debug);
83 $services->views->configureFromCache();
92 $this->cache->clear();
105 private function getBootData(
Config $config,
bool $installed) {
108 $config->_boot_cache_hit =
false;
111 if (
$config->boot_cache_ttl > 0) {
116 $data =
new BootData();
118 if (
$config->boot_cache_ttl && $installed) {
122 $config->_boot_cache_hit =
true;
$guid
Reset an ElggUpgrade.
if(! $user||! $user->canDelete()) $name
if(! $entity instanceof \ElggUser) $data
save()
Save this data to the appropriate database table.bool
load(stdClass $row)
Loads attributes from the entities table into the object.
Boots Elgg and manages a cache of data needed during boot.
clearCache()
Clear the cache item.
boot(InternalContainer $services)
Boots the engine.
__construct(protected BootCache $cache)
Constructs the bootservice.
Exception thrown if an error which can only be found on runtime occurs.
$config
Advanced site settings, debugging section.
_elgg_services()
Get the global service provider.
endTimer(array $keys)
Ends the timer (when enabled)
trait Profilable
Make an object accept a timer.
beginTimer(array $keys)
Start the timer (when enabled)