You are here

public function FillPdfAccessController::__construct in FillPDF 8.4

Same name and namespace in other branches
  1. 5.0.x src/FillPdfAccessController.php \Drupal\fillpdf\FillPdfAccessController::__construct()

Constructs a FillPdfAccessManager object.

Parameters

\Drupal\fillpdf\FillPdfAccessHelperInterface $access_helper: The FillPDF access helper.

\Drupal\fillpdf\FillPdfLinkManipulatorInterface $link_manipulator: The FillPDF link manipulator.

\Drupal\fillpdf\FillPdfContextManagerInterface $context_manager: The FillPDF context manager.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

File

src/FillPdfAccessController.php, line 70

Class

FillPdfAccessController
Defines a custom access controller for the FillPDF generation route.

Namespace

Drupal\fillpdf

Code

public function __construct(FillPdfAccessHelperInterface $access_helper, FillPdfLinkManipulatorInterface $link_manipulator, FillPdfContextManagerInterface $context_manager, RequestStack $request_stack, AccountInterface $current_user) {
  $this->accessHelper = $access_helper;
  $this->linkManipulator = $link_manipulator;
  $this->contextManager = $context_manager;
  $this->requestStack = $request_stack;
  $this->currentUser = $current_user;
}