You are here

public function CommentStatistics::__construct in Zircon Profile 8

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

Constructs the CommentStatistics service.

Parameters

\Drupal\Core\Database\Connection $database: The active database connection.

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

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

\Drupal\Core\State\StateInterface $state: The state service.

File

core/modules/comment/src/CommentStatistics.php, line 61
Contains \Drupal\comment\CommentStatistics.

Class

CommentStatistics

Namespace

Drupal\comment

Code

public function __construct(Connection $database, AccountInterface $current_user, EntityManagerInterface $entity_manager, StateInterface $state) {
  $this->database = $database;
  $this->currentUser = $current_user;
  $this->entityManager = $entity_manager;
  $this->state = $state;
}