Example #1
0
    /**
     * @return \eZ\Bundle\EzPublishLegacyBundle\Controller\PreviewController
     */
    protected function getPreviewController()
    {
        $controller = new PreviewController(
            $this->contentService,
            $this->httpKernel,
            $this->previewHelper,
            $this->securityContext
        );
        $controller->setConfigResolver( $this->configResolver );

        return $controller;
    }
 /**
  * @return \eZ\Bundle\EzPublishLegacyBundle\Controller\PreviewController
  */
 protected function getPreviewController()
 {
     $controller = new PreviewController($this->contentService, $this->httpKernel, $this->previewHelper, $this->authorizationChecker, $this->locationProvider, $this->controllerChecker);
     $controller->setConfigResolver($this->configResolver);
     return $controller;
 }