You are here

public function AjaxController::__construct in Private Message 8

Same name and namespace in other branches
  1. 8.2 src/Controller/AjaxController.php \Drupal\private_message\Controller\AjaxController::__construct()

Constructs n AjaxController object.

Parameters

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

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

\Drupal\Core\Entity\EntityManagerInterface $entityManager: The entity manager service.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration factory.

\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.

\Drupal\private_message\Service\PrivateMessageServiceInterface $privateMessageService: The private message service.

File

src/Controller/AjaxController.php, line 89

Class

AjaxController
Controller to handle Ajax requests.

Namespace

Drupal\private_message\Controller

Code

public function __construct(RendererInterface $renderer, RequestStack $requestStack, EntityManagerInterface $entityManager, ConfigFactoryInterface $configFactory, AccountProxyInterface $currentUser, PrivateMessageServiceInterface $privateMessageService) {
  $this->renderer = $renderer;
  $this->requestStack = $requestStack;
  $this->entityManager = $entityManager;
  $this->configFactory = $configFactory;
  $this->currentUser = $currentUser;
  $this->privateMessageService = $privateMessageService;
}