You are here

public function MailchimpCampaignController::__construct in Mailchimp 2.x

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

Initializes a MailchimpCampaignController.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The current request.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: Entity type manager.

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

\Psr\Log\LoggerInterface $logger: A logger instance.

File

modules/mailchimp_campaign/src/Controller/MailchimpCampaignController.php, line 80

Class

MailchimpCampaignController
Mailchimp Campaign controller.

Namespace

Drupal\mailchimp_campaign\Controller

Code

public function __construct(Request $request, DateFormatterInterface $date_formatter, EntityTypeManagerInterface $entityTypeManager, MessengerInterface $messenger, LoggerInterface $logger) {
  $this->request = $request;
  $this->dateFormatter = $date_formatter;
  $this->entityTypeManager = $entityTypeManager;
  $this->messenger = $messenger;
  $this->logger = $logger;
}