src/Command/LintCommand.php
protected function loadConfiguration($path)
    {
        try {
            $configuration = Yaml::parse(file_get_contents($path));
            if (!is_array($configuration)) {
                throw new ParseException('Invalid content.', 1);
            }

            return $configuration;
        } catch (ParseException $e) {
            $this->output->writeln(sprintf('<error>Unable to parse the YAML string: %s</error>', $e->getMessage()));

            return [];
        }
    }
protected function loadConfiguration($path)
    {
        try {
            $configuration = Yaml::parse(file_get_contents($path));
            if (!is_array($configuration)) {
                throw new ParseException('Invalid content.', 1);
            }

            return $configuration;
        } catch (ParseException $e) {
            $this->output->writeln(sprintf('<error>Unable to parse the YAML string: %s</error>', $e->getMessage()));

            return [];
        }
    }
protected function loadConfiguration ( $ path ) { try { $ configuration = Yaml :: parse ( file_get_contents ( $ path ) ) ; if ( ! is_array ( $ configuration ) ) { throw new ParseException ( 'Invalid content.' , 1 ) ; } return $ configuration ; } catch ( ParseException $ e ) { $ this -> output -> writeln ( sprintf ( '<error>Unable to parse the YAML string: %s</error>' , $ e -> getMessage ( ) ) ) ; return [ ] ; } }
Load configuration from yaml.

@param string $path

@return array
Load configuration from yaml .