You are here

public function SocialNodeMessenger::__construct in Open Social 10.0.x

Same name and namespace in other branches
  1. 10.3.x modules/social_features/social_node/src/Service/SocialNodeMessenger.php \Drupal\social_node\Service\SocialNodeMessenger::__construct()
  2. 10.1.x modules/social_features/social_node/src/Service/SocialNodeMessenger.php \Drupal\social_node\Service\SocialNodeMessenger::__construct()
  3. 10.2.x modules/social_features/social_node/src/Service/SocialNodeMessenger.php \Drupal\social_node\Service\SocialNodeMessenger::__construct()

SocialNodeMessenger constructor.

Parameters

\Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface $flash_bag: The flash bag.

\Drupal\Core\PageCache\ResponsePolicy\KillSwitch $killSwitch: The kill switch.

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

Overrides Messenger::__construct

File

modules/social_features/social_node/src/Service/SocialNodeMessenger.php, line 40

Class

SocialNodeMessenger
The messenger service.

Namespace

Drupal\social_node\Service

Code

public function __construct(FlashBagInterface $flash_bag, KillSwitch $killSwitch, ModuleHandlerInterface $module_handler) {
  parent::__construct($flash_bag, $killSwitch);
  $this->moduleHandler = $module_handler;
}