@param Config $config

@return void
486433
public function load(Config $config)
    {

        $phpExtraPhpunitOpts = [];
        $xdebugSoLocation    = $this->getXdebugService()->findXdebugSoPath();

        if (null !== $xdebugSoLocation) {
            $phpExtraPhpunitOpts[] = sprintf('-d zend_extension=%s', $xdebugSoLocation);
        }

        $config['phpunit_conf_dir']       = $this->getPhpunitService()->getPhpunitXmlDir([__DIR__.'/../Resources/phpunit']);
        $config['php_extra_phpunit_opts'] = join(' ', $phpExtraPhpunitOpts);

        $config->setDefaultItem('commands', '_test', "#test,execute all tests");
        $config->setDefaultItem('commands', '_test-unit', "#test-unit,execute unit tests");
        $config->setDefaultItem('commands', '_test-group', "#test-group");
        $config->setDefaultItem('commands', '_test-integ', "#test-integ");
        $config->setDefaultItem('commands', '_test-loop', "#test-loop");
        $config->setDefaultItem('commands', '_test-unit-loop', "#test-unit-loop");
        $config->setDefaultItem('commands', '_test-unit', "#test-unit");
        $config->setDefaultItem('commands', 'tu', "#test-unit");
        $config->setDefaultItem('commands', 'ti', "#test-integ");
        $config->setDefaultItem('commands', 'tg', "#test-group");
        $config->setDefaultItem('commands', 'tul', "#test-unit-loop");
    }
185215
public function setupPlugin(array $config = []): void
	{
		if (!$this->defaults) return;
		$this->setupConfig($this->defaults, $config);
	}
645982
private function doApplicationConfigExtend(Config $config)
    {
        $config_directories = ConfigDirectory::getDirectories(
            null,
            $this->baseRepository,
            $this->context,
            $this->environment
        );

        foreach ($config_directories as $directory) {
            if (is_dir($directory)) {
                $config->extend($directory, $this->overrideConfig);
            }
        }
    }
1023200
public function setConfig(Config $config, $merge = true)
    {
        if ($this->config && $merge) {
            $this->config->merge($config);
        } else {
            $this->config = $config;
        }
    }
706636
public function init( $config = [ ] )
    {
        $this->initDefaults();

        $this->initMail( $config );

        $this->initLog( $config );

        $this->initDatabase( $config );

        $this->initRequest( $config );

        $this->initRouter( $config );

        $this->initSession( $config );

        $this->initAppName( $config );

        $this->initDefaultLanguage( $config );

//        $this->_initMaintenanceMode( $config );
    }
951933
private function configure(array $config = []): void
    {
        foreach ($config as $param => $value) {
            $property = $this->toCamelCase($param);
            if (property_exists(self::class, $property)) {
                $this->$property = $value;
            }
        }
    }
6708
public function initialize(array $config)
    {
        parent::initialize($config);

        $this->setEmailObject(new Email($this->config('config')));
    }
878392
protected function initializeConfig(array $config = null)
    {
        $default = $this->defaultConfigurations();

        $this->config = $config ? array_replace_recursive($default, $config) : $default;
    }
296140
protected function _setup($config) {
        if (empty($config['createdField'])) {
            $config['createdField'] = 'created';
        }
        if (empty($config['modifiedField'])) {
            $config['modifiedField'] = 'modified';
        }
        $this->_fields = $config;
    }
1198733
public function setConfig(AnConfig $config)
    {
        parent::setConfig($config);

        $this->_entityset = $config->entityset;
        $this->_cardinality = $config->cardinality;

        if (is_numeric($this->_cardinality)) {
            $this->_cardinality = (int) $this->_cardinality;
        }

        $this->_delete_rule = $config->parent_delete;
        $this->_child_key = $config->child_key;
    }
1168441
public function applyConfig(array $config)
    {
        if (isset($config['description'])) {
            $this->description = $config['description'];
        }

        if (isset($config['default'])) {
            $this->defaultValue = $config['default'];
        }

        if (isset($config['required'])) {
            $this->required = (boolean) $config['required'];
        }
    }
892171
public static function init($config = [])
    {
        if ($config) {
            self::$config = array_merge(self::$config, $config);
            self::$isInit = true;
        } elseif (!self::$isInit) {
            self::detect();
            self::$isInit = true;
        }
    }
656846
public function processConfig($config = array())
    {
        foreach (array_keys($config) as $setting) {
            if (array_key_exists($setting, $this->settings)) {
                $prop = $this->settings[$setting];
                $this->$prop = $config[$setting];
            }
        }
    }
888088
public function setConfig($config)
    {
        $this->config = $config;
        $this->factory = new Factory($config);
        $this->AssetBuild->setConfig($config);
    }
639331
public function updateConfig(&$config)
    {
        if (!isset($config['types'])) {
            $config['types'] = [];
        }

        $config['types']['VersionedStage'] = VersionedStage::class;
        $config['types']['VersionedStatus'] = VersionedStatus::class;
        $config['types']['VersionedQueryMode'] = VersionedQueryMode::class;
        $config['types']['VersionedInputType'] = VersionedInputType::class;
        $config['types']['CopyToStageInputType'] = CopyToStageInputType::class;
    }
1119975
public static function normalize(Config $config)
    {
        self::normalizeFunctions($config);
        self::normalizeTime($config);
        self::normalizeArrays($config);
        self::normalizeStreams($config);
    }
979140
public function add($section, $config = array())
    {
        if (! isset($this->config[$section])) {
            $this->config[$section] = array();
        }

        $this->config[$section] = array_merge($this->config[$section], $config);
    }