private function getYmlFileContent(string $fileName = null): string
    {
        $fileName = $fileName ?: $this->routesFile;
        if (!is_file($fileName)) {
            throw new RoutesFileNotFoundException(
                "The routes file '{$fileName}' was not found on your system."
            );
        }

        return file_get_contents($fileName);
    }
private function getYmlFileContent(string $fileName = null): string
    {
        $fileName = $fileName ?: $this->routesFile;
        if (!is_file($fileName)) {
            throw new RoutesFileNotFoundException(
                "The routes file '{$fileName}' was not found on your system."
            );
        }

        return file_get_contents($fileName);
    }
private function getYmlFileContent ( string $ fileName = null ) : string { $ fileName = $ fileName ? : $ this -> routesFile ; if ( ! is_file ( $ fileName ) ) { throw new RoutesFileNotFoundException ( "The routes file '{$fileName}' was not found on your system." ) ; } return file_get_contents ( $ fileName ) ; }
Get contents form YML file

@param string|null $fileName
@return string
Get contents form YML file