Any settings/vars added to the config array are stored here
357505
public function init($vars) {
		foreach($vars as $n => $v) {
			if($n == 'db') self::$db = $v;
			else if($n == 'error') self::$e = $v;
			else self::$add[$n] = $v;
		}
	}
671524
def is_config_var(var):
    

    return (
        isinstance(var, (attr._make.Attribute, attr._make._CountingAttr))
        and hasattr(var, "metadata")
        and CONFIG_KEY in var.metadata
    )
953015
function handleAddedConfigItems(_a) {
    var fileInitialState = _a.fileInitialState, memoryInitialState = _a.memoryInitialState;
    var addedItems = fileInitialState.filter(function (fileItem) {
        var addedItem = !memoryInitialState.find(function (bsItem) { return fileItem.key === bsItem.key; });
        return addedItem;
    });
    if (addedItems.length > 0) {
        console.log('ADDED CONFIG: ', addedItems);
    }
    addedItems.forEach(function (addedItem) {
        saveItemToBrowserStorage(addedItem);
    });
}
84790
private function getSettings()
    {
        $rootPath = $this->complement['path']['root'];
        $configFile = $rootPath . 'config/';

        if (is_dir($configFile) && $handle = scandir($configFile)) {
            $files = array_slice($handle, 2);

            foreach ($files as $file) {
                $content = require $configFile . $file;
                $merge = array_merge($this->complement, $content);
                $this->complement = $merge;
            }
        }

        $this->complement['path']['root'] = $rootPath;
        $this->complement['path']['config'] = $configFile;
    }
914048
protected function addVariables()
    {
        parent::addVariables();
        $groupModelTypes = (new \Stack\Setting)
            ->parse('BackOffice')
            ->get('model');
        foreach ( $groupModelTypes as $group => $modelTypes ) {
            if ( !is_array( $modelTypes )) {
                if (empty($modelTypes)){
                    unset($groupModelTypes[$group]);
                } else {
                    \UArray::doRenameKey($groupModelTypes,$group,$modelTypes);
                    $groupModelTypes[$modelTypes]=[$modelTypes];
                }
            }
        }
        $this['groupModelTypes'] = $groupModelTypes;
    }
1061192
def config():
    ''''''
    if hasattr(current_app, 'settings_file'):
        log.info('Loaded configuration from %s', current_app.settings_file)

    log.info(white('Current configuration'))
    for key in sorted(current_app.config):
        if key.startswith('__') or not key.isupper():
            continue
        echo('{0}: {1}'.format(white(key), current_app.config[key]))
481827
public function applyConfigOverrides()
    {
        // init
        $config_items = [];

        foreach ($this->settings_default as $key => $value) {
            if (ee()->config->item($key)) {
                $config_items[$key] = ee()->config->item($key);
            }
        }

        if (is_array($this->settings)) {
            $this->settings = array_merge($this->settings, $config_items);
        }
    }
1180941
function config(options) {
    var current = config.current
    Object.assign(current, options)
    api._init(current)
}
77504
private function _checkVariables() {
	    // Check to make sure that the $databaseComponent is a string
        if (! is_string($this->databaseComponent)) {
            throw new InvalidConfigException("Image Manager Component - Init: Database component '$this->databaseComponent' is not a string");
        }

        // Check to make sure that the $databaseComponent object exists
        if (Yii::$app->get($this->databaseComponent, false) === null) {
            throw new InvalidConfigException("Image Manager Component - Init: Database component '$this->databaseComponent' does not exists in application configuration");
        }

        // Check to make sure that the $databaseComponent is a yii\db\Connection object
        if (($databaseComponentClassName = get_class(Yii::$app->get($this->databaseComponent))) !== ($connectionClassName = Connection::className())) {
            throw new InvalidConfigException("Image Manager Component - Init: Database component '$this->databaseComponent' is not of type '$connectionClassName' instead it is '$databaseComponentClassName'");
        }
    }
653281
def list_config_variables(self, offset):
        """"""

        names = sorted(self._config_variables)
        names = names[offset:offset + 9]
        count = len(names)

        if len(names) < 9:
            names += [0]*(9 - count)

        return [count] + names
37611
def apply_settings(settings):
    
    for key, value in settings.items():
        ConfigManager.SETTINGS[key] = value
796768
def update
    @config_var = ConfigVar.where(name: params[:config_var][:name]).first
    unless @config_var
      @config_var = ConfigVar.new update_params[:config_var]
    end

    respond_to do |format|
      success = if @config_var.new_record?
        @config_var.save
      else
        @config_var.update_attributes update_params[:config_var]
      end
      if success
        format.html do
          redirect_to config_vars_url,
              notice: 'Configuration variable was successfully updated.'
        end
      else
        format.html { render action: :edit }
      end
    end
  end
1290907
function () {
      var done = this.async();
      var questions = [];
      var choices = [
        {
          name: 'Standard Preset',
          value: 'standard'
        },
        {
          name: 'Minimum Preset',
          value: 'minimum'
        },
        {
          name: 'Custom Configuration (Advanced)',
          value: 'custom'
        }
      ];
      var defaultType = 'standard';

      if (!this.skipWelcomeMessage) {
        this.log(yosay('Welcome to ' + this.pkg.name + ' v' + this.pkg.version));
      }

      if (!this.configType) {
        if (this.config.existed) {
          choices.splice(2, 0, {
            name: 'User Preset',
            value: 'user'
          });
          defaultType = 'user';
        }
        questions.push({
          type: 'list',
          name: 'configType',
          message: 'Setup Type',
          choices: choices,
          default: defaultType
        });
      }

      this.prompt(questions, function (answers) {
        if (typeof answers.configType !== 'undefined') {
          this.configType = answers.configType;
        }

        // Preset for skipping prompt
        switch (this.configType) {
          case 'standard':
            this.preset = standardPreset;
            break;
          case 'minimum':
            this.preset = minimumPreset;
            break;
          case 'user':
            this.preset = this.config.getAll();
            break;
          case 'custom':
            this.preset = {};
            break;
        }

        // Initial settings
        this.settings = _.assign({}, defaultConfig, this.config.getAll());

        done();
      }.bind(this));
    }
958430
function defineAppVars()
    {
        $vars   = [];
        $vars[] = '// App Constants';
        $vars[] = [
            'key'   => 'APP_NAME',
            'label' => 'App Name',
            'value' => defined('APP_NAME') ? APP_NAME : 'Untitled',
        ];

        $vars[] = [
            'key'      => 'APP_DEFAULT_TIMEZONE',
            'label'    => 'App Timezone',
            'value'    => defined('APP_DEFAULT_TIMEZONE') ? APP_DEFAULT_TIMEZONE : date_default_timezone_get(),
            'validate' => function ($sInput) {
                return in_array($sInput, timezone_identifiers_list());
            },
        ];

        $vars[] = [
            'key'   => 'APP__KEY',
            'label' => 'App  Key',
            'value' => defined('APP_PRIVATE_KEY') && !empty(APP_PRIVATE_KEY) ? APP_PRIVATE_KEY : md5(rand(0, 1000) . microtime(true)),
        ];

        $vars[] = [
            'key'   => 'APP_DEVELOPER_EMAIL',
            'label' => 'Developer Email',
            'value' => defined('APP_DEVELOPER_EMAIL') ? APP_DEVELOPER_EMAIL : '',
        ];

        $vars[] = [
            'key'   => 'APP_DB_PREFIX',
            'label' => 'Prefix for app database tables',
            'value' => defined('APP_DB_PREFIX') ? 'app_' : '',
        ];

        // --------------------------------------------------------------------------

        //  Any constants defined by the components?
        $componentVars = $this->getConstantsFromComponents('APP', $vars);
        $vars          = array_merge($vars, $componentVars);

        // --------------------------------------------------------------------------

        //  Any other constants defined in app.php?
        $appFile = $this->getConstantsFromFile('config/app.php', $vars);
        $vars    = array_merge($vars, $appFile);

        // --------------------------------------------------------------------------

        return $vars;
    }
1266908
public function GenerateConfigs()
    {
        // Variables used by some template files.
        $authors = \Peg\Lib\Settings::GetAuthors();
        $contributors = \Peg\Lib\Settings::GetContributors();
        $extension = \Peg\Lib\Settings::GetExtensionName();
        $version = \Peg\Lib\Settings::GetVersion();

        // Variable to temporarily store a template file content.
        $content = "";

        // Generate sources list
        $source_files = array(
            "src/functions.cpp",
            "src/references.cpp"
        );

        foreach($this->symbols->headers as $header_name=>$header_object)
        {
            if($header_object->enabled)
            {
                $source_files[] = "src/".$this->GetSourceNamePHP($header_name);
            }
        }

        // Generate custom sources list
        $custom_sources = $this->GetCustomSources();

        if(count($custom_sources) > 0)
        {
            foreach($custom_sources as $custom_source)
            {
                if($custom_source != "." && $custom_source != "..")
                {
                    if(
                        (strpos($custom_source, ".c") !== false)
                        ||
                        (strpos($custom_source, ".cpp") !== false)
                    )
                    {
                        $source_files[] = "src/".$custom_source;
                    }
                }
            }
        }

        $source_files = implode(" \\\n        ", $source_files);

        // Generate config.m4
        ob_start();
            include($this->GetGenericTemplate("config.m4", "configs"));
            $content = ob_get_contents();
        ob_end_clean();

        $this->AddGenericFile("config.m4", $content);

        // Generate config.w32
        ob_start();
            include($this->GetGenericTemplate("config.w32", "configs"));
            $content = ob_get_contents();
        ob_end_clean();

        $this->AddGenericFile("config.w32", $content);
    }
286660
private function addConfigArrays()
    {
        $this->info("Adding the 'locales' and 'skip_locales' arrays to config/app.php");
        $this->helper->replaceAndSave($this->config->paths->config->app, $this->oldLocalesString, $this->newLocalesString);
        $this->bar->advance();
    }
894698
def index
    @config_vars = ConfigVar.order(:name).to_a

    defined_names = ConfigvarsRails.variable_names
    default_names = defined_names - @config_vars.map { |var| var.name.to_sym }
    @default_vars = default_names.map { |name|
      [name.to_s, ConfigvarsRails.variable_descriptor(name)]
    }.sort

    respond_to do |format|
      format.html # index.html.erb
    end
  end