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();
    }
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();
    }
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 ( ) ; }
Detect configuration file and create Site Configuration from it

@return Configuration
Detect configuration file and create Site Configuration from it