public function Messenger::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Messenger/Messenger.php \Drupal\Core\Messenger\Messenger::__construct()
Messenger constructor.
Parameters
\Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface $flash_bag: The flash bag.
\Drupal\Core\PageCache\ResponsePolicy\KillSwitch $killSwitch: The kill switch.
File
- core/
lib/ Drupal/ Core/ Messenger/ Messenger.php, line 37
Class
- Messenger
- The messenger service.
Namespace
Drupal\Core\MessengerCode
public function __construct(FlashBagInterface $flash_bag, KillSwitch $killSwitch) {
$this->flashBag = $flash_bag;
$this->killSwitch = $killSwitch;
}