Crunz\Configuration\Configuration::locateConfigFile PHP Method

locateConfigFile() protected method

Locate the right config file and return its name
protected locateConfigFile ( ) : string
return string
    protected function locateConfigFile()
    {
        $config_file = getenv('CRUNZ_BASE_DIR') . '/crunz.yml';
        return file_exists($config_file) ? $config_file : __DIR__ . '/../../crunz.yml';
    }