eZ\Publish\Core\MVC\Symfony\Controller\Content\ViewController::__construct PHP Method

__construct() public method

public __construct ( eZ\Publish\Core\MVC\Symfony\View\ViewManagerInterface $viewManager, Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface $authorizationChecker )
$viewManager eZ\Publish\Core\MVC\Symfony\View\ViewManagerInterface
$authorizationChecker Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface
    public function __construct(ViewManagerInterface $viewManager, AuthorizationCheckerInterface $authorizationChecker)
    {
        $this->viewManager = $viewManager;
        $this->authorizationChecker = $authorizationChecker;
    }

Usage Example

 /**
  * @param FormFacadeInterface $formFacade
  * @param ContentService $contentService
  * @param ViewManagerInterface $viewManager
  * @param SecurityContextInterface $securityContext
  */
 public function __construct(FormFacadeInterface $formFacade, ContentService $contentService, ViewManagerInterface $viewManager, SecurityContextInterface $securityContext)
 {
     parent::__construct($viewManager, $securityContext);
     $this->formFacade = $formFacade;
     $this->contentService = $contentService;
 }