You are here

public function RateVote::__construct in Rate 8

Constructor for vote service.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\votingapi\VoteResultFunctionManager $result_manager: The vote result manager.

\Drupal\Core\Database\Connection $database: The entity type manager.

\Drupal\rate\RateBotDetector $bot_detector: The bot detector service.

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

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

File

src/RateVote.php, line 76

Class

RateVote
Returns responses for Rate routes.

Namespace

Drupal\rate

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, VoteResultFunctionManager $result_manager, Connection $database, RateBotDetector $bot_detector, AccountProxyInterface $account_proxy, MessengerInterface $messenger) {
  $this->entityTypeManager = $entity_type_manager;
  $this->resultManager = $result_manager;
  $this->database = $database;
  $this->botDetector = $bot_detector;
  $this->accountProxy = $account_proxy;
  $this->messenger = $messenger;
}