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; }
Please login to continue.