CommentController::__construct

public CommentController::__construct(HttpKernelInterface $http_kernel, CommentManagerInterface $comment_manager, EntityManagerInterface $entity_manager)

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 59

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;
}
doc_Drupal
2016-10-29 08:50:34
Comments
Leave a Comment

Please login to continue.