src/A1comms/GaeSupportLaravel/View/ViewServiceProvider.php
/**
     * Register the engine resolver instance.
     *
     * @return void
     */
Register the engine resolver instance.
@return void
Register the engine resolver instance . @return void
public function registerGaeEngineResolver()
    {
        $this->app->singleton('view.engine.resolver', function () {
            $resolver = new EngineResolver;
            foreach (['file', 'php'] as $engine) {
                $this->{'register'.ucfirst($engine).'Engine'}($resolver);
            }
            foreach (['blade'] as $engine) {
                $this->{'registerGae'.ucfirst($engine).'Engine'}($resolver);
            }
            return $resolver;
        });
    }
public function registerGaeEngineResolver ( ) { $ this -> app -> singleton ( 'view.engine.resolver' , function ( ) { $ resolver = new EngineResolver ; foreach ( [ 'file' , 'php' ] as $ engine ) { $ this -> { 'register' . ucfirst ( $ engine ) . 'Engine' } ( $ resolver ) ; } foreach ( [ 'blade' ] as $ engine ) { $ this -> { 'registerGae' . ucfirst ( $ engine ) . 'Engine' } ( $ resolver ) ; } return $ resolver ; } ) ; }
Register the engine resolver instance.
Register the engine resolver instance .
// Next, we will register the various view engines with the resolver so that the // environment will resolve the engines needed for various views based on the // extension of view file. We call a method for each of the view's engines.