public function XquantityStockOrderEventSubscriber::__construct in Commerce Extended Quantity 8
Constructs a new OrderEventSubscriber object.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.
\Drupal\Core\Session\AccountProxyInterface $user: The current user.
\Drupal\commerce_order\AvailabilityCheckerInterface $availability_manager: The availability manager.
File
- modules/
xquantity_stock/ src/ EventSubscriber/ XquantityStockOrderEventSubscriber.php, line 54
Class
- XquantityStockOrderEventSubscriber
- Commerce order event subscriber.
Namespace
Drupal\xquantity_stock\EventSubscriberCode
public function __construct(RouteMatchInterface $route_match, AccountProxyInterface $user, AvailabilityCheckerInterface $availability_manager) {
$this->routeMatch = $route_match;
$this->currentUser = $user;
$this->availabilityManager = $availability_manager;
}