src/mako/view/ViewFactory.php
protected function resolveRenderer(string $extension): RendererInterface
	{
		if(!isset($this->rendererInstances[$extension]))
		{
			$this->rendererInstances[$extension] = $this->rendererFactory($this->renderers[$extension]);
		}

		return $this->rendererInstances[$extension];
	}
protected function resolveRenderer(string $extension): RendererInterface
	{
		if(!isset($this->rendererInstances[$extension]))
		{
			$this->rendererInstances[$extension] = $this->rendererFactory($this->renderers[$extension]);
		}

		return $this->rendererInstances[$extension];
	}
protected function resolveRenderer ( string $ extension ) : RendererInterface { if ( ! isset ( $ this -> rendererInstances [ $ extension ] ) ) { $ this -> rendererInstances [ $ extension ] = $ this -> rendererFactory ( $ this -> renderers [ $ extension ] ) ; } return $ this -> rendererInstances [ $ extension ] ; }
Returns a renderer instance.

@param  string                                 $extension Extension associated with the renderer
@return \mako\view\renderers\RendererInterface
Returns a renderer instance .