protected function registerCompiler()
    {
        $this->app->singleton('markdown.compiler', function (Container $app) {
            $markdown = $app['markdown'];
            $files = $app['files'];
            $storagePath = $app->config->get('view.compiled');

            return new MarkdownCompiler($markdown, $files, $storagePath);
        });

        $this->app->alias('markdown.compiler', MarkdownCompiler::class);
    }
protected function registerCompiler()
    {
        $this->app->singleton('markdown.compiler', function (Container $app) {
            $markdown = $app['markdown'];
            $files = $app['files'];
            $storagePath = $app->config->get('view.compiled');

            return new MarkdownCompiler($markdown, $files, $storagePath);
        });

        $this->app->alias('markdown.compiler', MarkdownCompiler::class);
    }
protected function registerCompiler ( ) { $ this -> app -> singleton ( 'markdown.compiler' , function ( Container $ app ) { $ markdown = $ app [ 'markdown' ] ; $ files = $ app [ 'files' ] ; $ storagePath = $ app -> config -> get ( 'view.compiled' ) ; return new MarkdownCompiler ( $ markdown , $ files , $ storagePath ) ; } ) ; $ this -> app -> alias ( 'markdown.compiler' , MarkdownCompiler :: class ) ; }
Register the markdown compiler class.

@return void
Register the markdown compiler class .