Get the resolved configuration.

@return Config
550789
public function getConfig(Schema $schema = null)
    {
        if (!$schema) {
            $schema = new Schema();
        }

        $config = new Config();

        foreach ($this->resources as $resource) {
            $values = $this->loadResource($resource[0], $resource[2]);
            if (is_string($prefix = $resource[1])) {
                $values = [
                    $prefix => $values,
                ];
            }

            $config->merge($values);
        }

        foreach ($this->processors as $processor) {
            $processor->onPostMerge($config, $schema);
        }

        return $config;
    }
109669
private function getConfigResolver()
    {
        if (null !== $this->configResolver) {
            return $this->configResolver;
        }

        $resolver = new OptionsResolver();
        $resolver
            ->setRequired([
                'site_id',
                'certificate',
                'ctx_mode',
                'directory',
                'debug',
            ])
            ->setAllowedTypes('site_id', 'string')
            ->setAllowedTypes('certificate', 'string')
            ->setAllowedValues('ctx_mode', ['TEST', 'PRODUCTION'])
            ->setAllowedTypes('directory', 'string')
            ->setAllowedTypes('debug', 'bool')
            ->setNormalizer('directory', function (Options $options, $value) {
                return rtrim($value, DIRECTORY_SEPARATOR);
            });

        return $this->configResolver = $resolver;
    }
399873
public function getConfiguration(){
        $rest = $this->getService( self::API_NETWORK_SHARE_AFP);
        $rest->GET();

        return $rest->getResult( models\NetworkShare\AfpConfig::class);
    }
657415
public function getExtensionConfig()
    {
        if (!is_array($this->extensionConfig)) {
            $composerjson = $this->getComposerJSON();
            if (is_array($composerjson)) {
                $this->extensionConfig = [
                    strtolower($composerjson['name']) => [
                        'name' => $this->getName(),
                        'json' => $composerjson,
                    ],
                ];
            } else {
                $this->extensionConfig = [
                    $this->getName() => [
                        'name' => $this->getName(),
                        'json' => [],
                    ],
                ];
            }
        }

        return $this->extensionConfig;
    }
922833
public function getConfigurationRegistry()
    {
        if (null === $this->configurationRegistry) {
            $this->configurationRegistry = new Configuration\ConfigurationRegistry();
        }

        return $this->configurationRegistry;
    }
1237431
public function getConfiguration(){
        $rest = $this->getService( self::API_SYSTEM);
        $rest->GET();

        return $rest->getResult( models\SystemConfig::class);
    }
46572
public function getConfiguration(){
        $rest = $this->getService( self::API_PARENTAL_CONFIG);
        $rest->GET();

        return $rest->getResult( models\ParentalControl\FilterConfig::class);
    }
1000233
public function getConfiguration(){
        $rest = $this->getService( self::API_FTP_CONFIG);
        $rest->GET();

        return $rest->getResult( models\FtpConfig::class);
    }
1049516
public function getConfig()
    {
        $conf = [];
        foreach (glob(__DIR__.'/../../config/*.config.php') as $conFile) {
            $conFile = include_once $conFile;
            if (is_array($conFile))
                $conf = \Poirot\Core\array_merge($conf, $conFile);
        }

        // usually return like this
        return $conf;
    }
591046
protected function resolveConfigFile()
    {
        $ruleSet = $this->getInput()->getOption('ruleSet');

        if (null === $ruleSet && file_exists('phpsemver.xml')) {
            return 'phpsemver.xml';
        }

        if (null === $ruleSet) {
            $ruleSet = 'SemVer2';
        }

        if (file_exists($ruleSet)) {
            return $ruleSet;
        }

        $defaultPath = PHPSEMVER_LIB_PATH . '/PHPSemVer/Rules/';
        if (file_exists($defaultPath . $ruleSet . '.xml')) {
            return $defaultPath . $ruleSet . '.xml';
        }

        throw new \InvalidArgumentException(
            'Could not find rule set: ' . $ruleSet
        );
    }
837154
public function getConfiguration(){
        $rest = $this->getService( self::API_DOWNLOAD_CONFIG);
        $rest->GET();

        return $rest->getResult( models\Download\Config\DownloadConfig::class);
    }
584163
public function getConfig()
    {
        if ($this->_oConfigObject === null) {
            $this->_oConfigObject = oxRegistry::getConfig();
        }

        return $this->_oConfigObject;
    }
370312
public function config()
    {
        if ($this->appConfig) {
            return $this->appConfig;
        }

        return $this->appConfig = $this->app->make('config');
    }
769462
public function resolve(): string
    {
        $packageType = $this->composer->getPackage()->getType();
        return array_key_exists($packageType, $this->mapping)
            ? $this->mapping[$packageType]
            : 'default';
    }
818050
public function detectConfig(): ConfigurationInterface
    {
        if (file_exists($file = $this->rootDir.'/config/sculpin_site_'.$this->environment.'.yml')) {
            return $this->getConfigFile($file);
        }

        if (file_exists($file = $this->rootDir.'/config/sculpin_site.yml')) {
            return $this->getConfigFile($file);
        }

        return new Configuration();
    }
304760
private function getConfigResolver()
    {
        if (null !== $this->configResolver) {
            return $this->configResolver;
        }

        $resolver = new OptionsResolver();
        $resolver
            ->setDefaults([
                'mode'  => static::MODE_TEST,
                'debug' => false,
            ])
            ->setRequired([
                'bank',
                'tpe',
                'key',
                'company',
            ])
            ->setAllowedTypes('bank', 'string')
            ->setAllowedTypes('mode', 'string')
            ->setAllowedTypes('tpe', 'string')
            ->setAllowedTypes('key', 'string')
            ->setAllowedTypes('company', 'string')
            ->setAllowedTypes('debug', 'bool')
            ->setAllowedValues('bank', [static::BANK_CM, static::BANK_CIC, static::BANK_OBC])
            ->setAllowedValues('mode', [static::MODE_TEST, static::MODE_PRODUCTION]);

        return $this->configResolver = $resolver;
    }
388193
public function getConfig()
    {
        $config = [];
        $provider = new ConfigProvider();

        $config['middleware_pipeline']    = $provider->getMiddlewareConfig();
        $config['service_manager']        = $provider->getDependencyConfig();

        return $config;
    }