public function getView(string $uri, Engine $engine, $type = null): View
    {
        if (null === $type) {
            $view = $this->getViewFinder()->find([$uri], $engine);
            return $view->setBuilder( $this );
        }

        return $this->resolveType($type, $uri, $engine);
    }
public function getView(string $uri, Engine $engine, $type = null): View
    {
        if (null === $type) {
            $view = $this->getViewFinder()->find([$uri], $engine);
            return $view->setBuilder( $this );
        }

        return $this->resolveType($type, $uri, $engine);
    }
public function getView ( string $ uri , Engine $ engine , $ type = null ) : View { if ( null === $ type ) { $ view = $ this -> getViewFinder ( ) -> find ( [ $ uri ] , $ engine ) ; return $ view -> setBuilder ( $ this ) ; } return $ this -> resolveType ( $ type , $ uri , $ engine ) ; }
Get a view for a given URI, engine and type.

@since 0.1.0

@param string $uri    URI to get a view for.
@param Engine $engine Engine to use for the view.
@param mixed  $type   Type of view to get.

@return View View that matches the given requirements.
@throws FailedToInstantiateView If the view could not be instantiated.
Get a view for a given URI engine and type .