src/Application.php
protected function getConfigFiles($files, array $defaults = ['steak.yml', 'steak.php'])
    {
        $option = (new ArgvInput())->getParameterOption(['--config', '-c']);

        if ( ! $option) {
            foreach ($defaults as $default) {
                if ($files->exists($default)) {
                    $option = ($option ? ',' : '') . $default;
                }
            }
        }

        return $option ? explode(',', $option) : [];
    }
protected function getConfigFiles($files, array $defaults = ['steak.yml', 'steak.php'])
    {
        $option = (new ArgvInput())->getParameterOption(['--config', '-c']);

        if ( ! $option) {
            foreach ($defaults as $default) {
                if ($files->exists($default)) {
                    $option = ($option ? ',' : '') . $default;
                }
            }
        }

        return $option ? explode(',', $option) : [];
    }
protected function getConfigFiles ( $ files , array $ defaults = [ 'steak.yml' , 'steak.php' ] ) { $ option = ( new ArgvInput ( ) ) -> getParameterOption ( [ '--config' , '-c' ] ) ; if ( ! $ option ) { foreach ( $ defaults as $ default ) { if ( $ files -> exists ( $ default ) ) { $ option = ( $ option ? ',' : '' ) . $ default ; } } } return $ option ? explode ( ',' , $ option ) : [ ] ; }
Parse the command line option for config file to use.

Multiple files can be given as a comma-separated list.
If no option is given, defaults as used.

@param Filesystem $files
@param array $defaults
@return array
Parse the command line option for config file to use .