You are here

public function CommentController::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/comment/src/Controller/CommentController.php \Drupal\comment\Controller\CommentController::__construct()

Constructs a CommentController object.

Parameters

\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: HTTP kernel to handle requests.

\Drupal\comment\CommentManagerInterface $comment_manager: The comment manager service.

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

File

core/modules/comment/src/Controller/CommentController.php, line 64
Contains \Drupal\comment\Controller\CommentController.

Class

CommentController
Controller for the comment entity.

Namespace

Drupal\comment\Controller

Code

public function __construct(HttpKernelInterface $http_kernel, CommentManagerInterface $comment_manager, EntityManagerInterface $entity_manager) {
  $this->httpKernel = $http_kernel;
  $this->commentManager = $comment_manager;
  $this->entityManager = $entity_manager;
}