uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
.
/
.
/
craft4-newsite-space
/
vendor
/
craftcms
/
cms
/
src
/
config
/
.
/
BaseConfig.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\config; use Craft; use craft\base\Model; /** * Base config class * * @author Pixel & Tonic, Inc. <support@pixelandtonic.com> * @since 4.2.0 */ class BaseConfig extends Model { /** * @var array Settings that have been renamed */ protected static array $renamedSettings = []; /** * @var string|null The config filename */ protected ?string $filename = null; /** * Factory method for creating new config objects. * * @param array $config * @return static */ public static function create(array $config = []): static { // We can't use Craft::createObject() here because Craft may not be autoloadable yet return new static($config); } /** * @inerhitdoc */ final public function __construct($config = []) { if (class_exists(Craft::class, false) && Craft::$app) { $this->filename = Craft::$app->getConfig()->getLoadingConfigFile(); } parent::__construct($config); } /** * @inheritdoc */ public function __get($name) { if (isset(static::$renamedSettings[$name])) { return $this->{static::$renamedSettings[$name]}; } return parent::__get($name); } /** * @inheritdoc */ public function __set($name, $value) { if (isset(static::$renamedSettings[$name])) { $newName = static::$renamedSettings[$name]; if (class_exists(Craft::class, false)) { $configFilePath = $this->filename ? Craft::$app->getConfig()->getConfigFilePath($this->filename) : null; Craft::$app->getDeprecator()->log(sprintf('%s::%s', static::class, $name), "`$name` has been renamed to `$newName`.", $configFilePath); } $this->$newName = $value; return; } parent::__set($name, $value); } /** * @inheritdoc */ public function __isset($name) { if (isset(static::$renamedSettings[$name])) { return isset($this->{static::$renamedSettings[$name]}); } return parent::__isset($name); } }
/srv/users/craft4/apps/././craft4-newsite-space/vendor/craftcms/cms/src/config/./BaseConfig.php