public function getRenderer()
    {
        $locator = $this->getServiceLocator();
        if (null === $this->renderer && $locator->has(Renderer\RendererInterface::class)) {
            $this->setRenderer($locator->get(Renderer\RendererInterface::class));
        }

        return $this->renderer;
    }
public function getRenderer()
    {
        $locator = $this->getServiceLocator();
        if (null === $this->renderer && $locator->has(Renderer\RendererInterface::class)) {
            $this->setRenderer($locator->get(Renderer\RendererInterface::class));
        }

        return $this->renderer;
    }
public function getRenderer ( ) { $ locator = $ this -> getServiceLocator ( ) ; if ( null === $ this -> renderer && $ locator -> has ( Renderer \ RendererInterface :: class ) ) { $ this -> setRenderer ( $ locator -> get ( Renderer \ RendererInterface :: class ) ) ; } return $ this -> renderer ; }
Retrieve renderer instance

@return null|Renderer\RendererInterface
Retrieve renderer instance