You are here

public function SendinblueManager::__construct in SendinBlue 8

Same name and namespace in other branches
  1. 8.2 src/SendinblueManager.php \Drupal\sendinblue\SendinblueManager::__construct()

EntityModerationForm constructor.

Parameters

\Drupal\sendinblue\Tools\Api\SendinblueApiV2 $sendinblueApiV2: SendinblueMailin.

\Drupal\sendinblue\Tools\Api\SendinblueApiV3 $sendinblueApiV3: SendinblueMailin.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: ConfigFactoryInterface.

\Drupal\Core\Database\Connection $connection: Connection.

\Drupal\Core\Form\FormBuilderInterface $formBuilder: FormBuilderInterface.

\Drupal\Core\Render\Renderer $renderer: Renderer.

\Drupal\Core\Mail\MailManagerInterface $mailManager: MailManagerInterface.

\Drupal\Core\Session\AccountProxyInterface $accountProxy: AccountProxyInterface.

File

src/SendinblueManager.php, line 161

Class

SendinblueManager
Basic manager of module.

Namespace

Drupal\sendinblue

Code

public function __construct(SendinblueApiV2 $sendinblueApiV2, SendinblueApiV3 $sendinblueApiV3, ConfigFactoryInterface $configFactory, Connection $connection, FormBuilderInterface $formBuilder, Renderer $renderer, MailManagerInterface $mailManager, AccountProxyInterface $accountProxy) {
  $this->configFactory = $configFactory;
  $this->connection = $connection;
  $this->formBuilder = $formBuilder;
  $this->renderer = $renderer;
  $this->mailManager = $mailManager;
  $this->accountProxy = $accountProxy;
  $this->sendinblueApiV2 = $sendinblueApiV2;
  $this->sendinblueApiV3 = $sendinblueApiV3;
  $this
    ->updateSendinblueMailin($this
    ->getAccessKey());
}