src/mako/view/ViewFactory.php
protected function rendererFactory($renderer): RendererInterface
	{
		return $renderer instanceof Closure ? $this->container->call($renderer) : $this->container->get($renderer);
	}
protected function rendererFactory($renderer): RendererInterface
	{
		return $renderer instanceof Closure ? $this->container->call($renderer) : $this->container->get($renderer);
	}
protected function rendererFactory ( $ renderer ) : RendererInterface { return $ renderer instanceof Closure ? $ this -> container -> call ( $ renderer ) : $ this -> container -> get ( $ renderer ) ; }
Creates a renderer instance.

@param  string|\Closure                        $renderer Renderer class or closure
@return \mako\view\renderers\RendererInterface
Creates a renderer instance .