src/CMSCoreServiceProvider.php
protected function setupViewer()
    {
        $this->app->bindShared('viewer', function ($app) {
            $view = $app['view'];
            $credentials = $app['credentials'];
            $navigation = $app['navigation'];
            $pageprovider = $app['pageprovider'];
            $name = $app['config']['platform.name'];
            $inverse = $app['config']['theme.inverse'];

            return new Classes\Viewer($view, $credentials, $navigation, $pageprovider, $name, $inverse);
        });
    }
protected function setupViewer()
    {
        $this->app->bindShared('viewer', function ($app) {
            $view = $app['view'];
            $credentials = $app['credentials'];
            $navigation = $app['navigation'];
            $pageprovider = $app['pageprovider'];
            $name = $app['config']['platform.name'];
            $inverse = $app['config']['theme.inverse'];

            return new Classes\Viewer($view, $credentials, $navigation, $pageprovider, $name, $inverse);
        });
    }
protected function setupViewer ( ) { $ this -> app -> bindShared ( 'viewer' , function ( $ app ) { $ view = $ app [ 'view' ] ; $ credentials = $ app [ 'credentials' ] ; $ navigation = $ app [ 'navigation' ] ; $ pageprovider = $ app [ 'pageprovider' ] ; $ name = $ app [ 'config' ] [ 'platform.name' ] ; $ inverse = $ app [ 'config' ] [ 'theme.inverse' ] ; return new Classes \ Viewer ( $ view , $ credentials , $ navigation , $ pageprovider , $ name , $ inverse ) ; } ) ; }
Setup the viewer class.

@return void
Setup the viewer class .