src/Zicht/SymfonyUtil/HttpKernel/Kernel.php
protected function getConfigFiles()
    {
        $ret = [];
        foreach ($this->getCandidateConfigFiles() as $configFile) {
            if (is_file($configFile)) {
                $ret[]= $configFile;
                break;
            }
        }
        $configFile = join(
            '/',
            [
                $this->getRootDir(),
                'config',
                sprintf('kernel_%s.yml', $this->getName())
            ]
        );
        if (is_file($configFile)) {
            $ret[]= $configFile;
        }
        return $ret;
    }
protected function getConfigFiles()
    {
        $ret = [];
        foreach ($this->getCandidateConfigFiles() as $configFile) {
            if (is_file($configFile)) {
                $ret[]= $configFile;
                break;
            }
        }
        $configFile = join(
            '/',
            [
                $this->getRootDir(),
                'config',
                sprintf('kernel_%s.yml', $this->getName())
            ]
        );
        if (is_file($configFile)) {
            $ret[]= $configFile;
        }
        return $ret;
    }
protected function getConfigFiles ( ) { $ ret = [ ] ; foreach ( $ this -> getCandidateConfigFiles ( ) as $ configFile ) { if ( is_file ( $ configFile ) ) { $ ret [ ] = $ configFile ; break ; } } $ configFile = join ( '/' , [ $ this -> getRootDir ( ) , 'config' , sprintf ( 'kernel_%s.yml' , $ this -> getName ( ) ) ] ) ; if ( is_file ( $ configFile ) ) { $ ret [ ] = $ configFile ; } return $ ret ; }
Get all config files which should be loaded. Can be overridden for custom logic.

By default, following files are loaded (relativy to `getRootDir()`)

- if `config/config_local.yml` exists, load that.
- if `config/config_local.yml` does not exist, load `config/config_{environment}.yml`
- additionally: `config/kernel_{name}.yml`

@return array
Get all config files which should be loaded . Can be overridden for custom logic .