public function parse($rawFileName)
    {
        $fileName = \realpath($rawFileName);

        if (!\is_file($fileName)) {
            throw new FileNotFoundException($rawFileName);
        }

        $rootDir = \dirname($fileName);
        $ramlString = \file_get_contents($fileName);

        $ramlData = $this->parseRamlString($ramlString, $rootDir);

        return $this->parseRamlData($ramlData, $rootDir);
    }
public function parse($rawFileName)
    {
        $fileName = \realpath($rawFileName);

        if (!\is_file($fileName)) {
            throw new FileNotFoundException($rawFileName);
        }

        $rootDir = \dirname($fileName);
        $ramlString = \file_get_contents($fileName);

        $ramlData = $this->parseRamlString($ramlString, $rootDir);

        return $this->parseRamlData($ramlData, $rootDir);
    }
public function parse ( $ rawFileName ) { $ fileName = \ realpath ( $ rawFileName ) ; if ( ! \ is_file ( $ fileName ) ) { throw new FileNotFoundException ( $ rawFileName ) ; } $ rootDir = \ dirname ( $ fileName ) ; $ ramlString = \ file_get_contents ( $ fileName ) ; $ ramlData = $ this -> parseRamlString ( $ ramlString , $ rootDir ) ; return $ this -> parseRamlData ( $ ramlData , $ rootDir ) ; }
Parse a RAML spec from a file

@param string $rawFileName
@return ApiDefinition

@throws FileNotFoundException
@throws RamlParserException
Parse a RAML spec from a file