protected function getRender()
    {
        // environment
        /** @var $environmentResolver EnvironmentResolver */
        $environmentResolver = $this->application->container->get('environment_resolver');
        $environment = $environmentResolver->resolve();

        $format = $this->getOption('format');
        if (is_null($format)) {
            $format = $environment->getDefaultFormat();
        }

        /** @var $formatResolver FormatResolver */
        $formatResolver = $this->application->container->get('format_resolver');
        $format = $formatResolver->getFormat($format);

        /** @var $themeResolver ThemeResolver */
        $themeResolver = $this->application->container->get('theme_resolver');

        if ($this->application->container->hasParameter('theme')) {
            $theme = $themeResolver->getTheme($this->application->container->getParameter('theme'), $format->getName());
        } else {
            $theme = $themeResolver->resolve($format);
        }

        /** @var $renderResolver RendererResolver */
        $renderResolver = $this->application->container->get('renderer_resolver');

        $render = $renderResolver->resolve($format);
        $render->setTheme($theme);
        //$render->setFormat($format);
        return $render;
    }
protected function getRender()
    {
        // environment
        /** @var $environmentResolver EnvironmentResolver */
        $environmentResolver = $this->application->container->get('environment_resolver');
        $environment = $environmentResolver->resolve();

        $format = $this->getOption('format');
        if (is_null($format)) {
            $format = $environment->getDefaultFormat();
        }

        /** @var $formatResolver FormatResolver */
        $formatResolver = $this->application->container->get('format_resolver');
        $format = $formatResolver->getFormat($format);

        /** @var $themeResolver ThemeResolver */
        $themeResolver = $this->application->container->get('theme_resolver');

        if ($this->application->container->hasParameter('theme')) {
            $theme = $themeResolver->getTheme($this->application->container->getParameter('theme'), $format->getName());
        } else {
            $theme = $themeResolver->resolve($format);
        }

        /** @var $renderResolver RendererResolver */
        $renderResolver = $this->application->container->get('renderer_resolver');

        $render = $renderResolver->resolve($format);
        $render->setTheme($theme);
        //$render->setFormat($format);
        return $render;
    }
protected function getRender ( ) { // environment /** @var $environmentResolver EnvironmentResolver */ $ environmentResolver = $ this -> application -> container -> get ( 'environment_resolver' ) ; $ environment = $ environmentResolver -> resolve ( ) ; $ format = $ this -> getOption ( 'format' ) ; if ( is_null ( $ format ) ) { $ format = $ environment -> getDefaultFormat ( ) ; } /** @var $formatResolver FormatResolver */ $ formatResolver = $ this -> application -> container -> get ( 'format_resolver' ) ; $ format = $ formatResolver -> getFormat ( $ format ) ; /** @var $themeResolver ThemeResolver */ $ themeResolver = $ this -> application -> container -> get ( 'theme_resolver' ) ; if ( $ this -> application -> container -> hasParameter ( 'theme' ) ) { $ theme = $ themeResolver -> getTheme ( $ this -> application -> container -> getParameter ( 'theme' ) , $ format -> getName ( ) ) ; } else { $ theme = $ themeResolver -> resolve ( $ format ) ; } /** @var $renderResolver RendererResolver */ $ renderResolver = $ this -> application -> container -> get ( 'renderer_resolver' ) ; $ render = $ renderResolver -> resolve ( $ format ) ; $ render -> setTheme ( $ theme ) ; //$render->setFormat($format); return $ render ; }
Get render object

@return RenderInterface
Get render object