public function parse($file)
    {
        $result = null;
        $this->hook->attach('help.render.before', $file, $result, $this);

        if (isset($result)) {
            return (string) $result;
        }

        $result = $this->markdown->render(file_get_contents($file));
        $this->hook->attach('help.render.after', $file, $result, $this);
        return (string) $result;
    }
public function parse($file)
    {
        $result = null;
        $this->hook->attach('help.render.before', $file, $result, $this);

        if (isset($result)) {
            return (string) $result;
        }

        $result = $this->markdown->render(file_get_contents($file));
        $this->hook->attach('help.render.after', $file, $result, $this);
        return (string) $result;
    }
public function parse ( $ file ) { $ result = null ; $ this -> hook -> attach ( 'help.render.before' , $ file , $ result , $ this ) ; if ( isset ( $ result ) ) { return ( string ) $ result ; } $ result = $ this -> markdown -> render ( file_get_contents ( $ file ) ) ; $ this -> hook -> attach ( 'help.render.after' , $ file , $ result , $ this ) ; return ( string ) $ result ; }
Render a help file
@param string $file
@return string
Render a help file