139 $this->timer->begin([]);
141 if (!$config->dataroot && !$config->installer_running) {
145 if (!$config->cacheroot) {
146 $config->cacheroot = $config->dataroot .
'caches';
149 if (!$config->assetroot) {
150 $config->assetroot = $config->cacheroot .
'views_simplecache';
153 if (!$config->wwwroot) {
154 $config->wwwroot = $this->request->sniffElggUrl();
157 if (!$config->plugins_path) {
165 foreach ($config::SENSITIVE_PROPERTIES as
$name) {
166 unset($config->{$name});
181 return $c->initConfig(
$config);
static project()
Get the project root (where composer is installed) path with "/".
A generic parent class for Configuration exceptions.
static elgg()
Get the Elgg codebase path with "/".
static fromElggConfig(Config $config)
Construct from an Elgg Config.
if(!$user||!$user->canDelete()) $name
static factory(array $options=[])
$config
Advanced site settings, debugging section.
if($who_can_change_language=== 'nobody') elseif($who_can_change_language=== 'admin_only'&&!elgg_is_admin_logged_in()) $options
initConfig(Config $config)
Validate, normalize, fill in missing values, and lock some.
static getDefinitionSources()