You are here

public function CartEventSubscriber::__construct in Commerce Cart Flyout 8

Constructs a new CartEventSubscriber object.

Parameters

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation.

Overrides CartEventSubscriber::__construct

File

src/EventSubscriber/CartEventSubscriber.php, line 34

Class

CartEventSubscriber
Replaces the original CartEventSubscriber from commerce_cart module.

Namespace

Drupal\commerce_cart_flyout\EventSubscriber

Code

public function __construct(MessengerInterface $messenger, TranslationInterface $string_translation, RouteMatchInterface $route_match) {
  parent::__construct($messenger, $string_translation);
  $this->routeMatch = $route_match;
}