You are here

function AnonymousPublishingClService::__construct in Anonymous Publishing 8

Constructs a MasonryService object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface: The config factory service

\Drupal\Core\Logger\LoggerChannelInterface: The logger factory service

\Drupal\Core\Database\Connection: The database connection service

\Symfony\Component\HttpFoundation\RequestStack: The request stack

Drupal\Core\Flood\FloodInterface: The flood verification service

\Drupal\Core\Mail\MailManagerInterface $mail_manager: The mail manager.

File

modules/anonymous_publishing_cl/src/Services/AnonymousPublishingClService.php, line 82

Class

AnonymousPublishingClService
Helper methods for Anonymous Publishing CL.

Namespace

Drupal\anonymous_publishing_cl\Services

Code

function __construct(ConfigFactory $config_factory, LoggerChannelFactoryInterface $logger_factory, Connection $connection, RequestStack $request_stack, FloodInterface $flood, MailManagerInterface $mail_manager) {
  $this->configFactory = $config_factory;
  $this->logger = $logger_factory
    ->get('anonymous_publishing');
  $this->database = $connection;
  $this->request = $request_stack
    ->getCurrentRequest();
  $this->flood = $flood;
  $this->mailManager = $mail_manager;
}