You are here

public function SpoolStorage::__construct in Simplenews 8.2

Same name and namespace in other branches
  1. 8 src/Spool/SpoolStorage.php \Drupal\simplenews\Spool\SpoolStorage::__construct()
  2. 3.x src/Spool/SpoolStorage.php \Drupal\simplenews\Spool\SpoolStorage::__construct()

Creates a SpoolStorage object.

Parameters

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

\Drupal\Core\Lock\LockBackendInterface $lock: The lock.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\simplenews\recipientHandler\RecipientHandlerManager $recipient_handler_manager: The recipient handler manager.

File

src/Spool/SpoolStorage.php, line 71

Class

SpoolStorage
Default database spool storage.

Namespace

Drupal\simplenews\Spool

Code

public function __construct(Connection $connection, LockBackendInterface $lock, ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, RecipientHandlerManager $recipient_handler_manager) {
  $this->connection = $connection;
  $this->lock = $lock;
  $this->config = $config_factory
    ->get('simplenews.settings');
  $this->moduleHandler = $module_handler;
  $this->recipientHandlerManager = $recipient_handler_manager;
}