src/Extensions/Markdown.php
public function parseFile($fileToParse)
    {
        $filename = $this->mdPath.$fileToParse;
        if (file_exists($filename)) {
            return $this->parse(file_get_contents($filename));
        }

        throw new \NachoNerd\Silex\Markdown\Exceptions\FileNotFound(
            sprintf("File %s Not Found", $filename),
            1
        );
    }
public function parseFile($fileToParse)
    {
        $filename = $this->mdPath.$fileToParse;
        if (file_exists($filename)) {
            return $this->parse(file_get_contents($filename));
        }

        throw new \NachoNerd\Silex\Markdown\Exceptions\FileNotFound(
            sprintf("File %s Not Found", $filename),
            1
        );
    }
public function parseFile ( $ fileToParse ) { $ filename = $ this -> mdPath . $ fileToParse ; if ( file_exists ( $ filename ) ) { return $ this -> parse ( file_get_contents ( $ filename ) ) ; } throw new \ NachoNerd \ Silex \ Markdown \ Exceptions \ FileNotFound ( sprintf ( "File %s Not Found" , $ filename ) , 1 ) ; }
Parses the given file

@param string $fileToParse File Name To Parse

@return string

@throws \NachoNerd\Silex\Markdown\Exceptions\FileNotFound
Parses the given file