You are here

public function QueryAccessSubscriber::__construct in Commerce Core 8.2

Constructs a new QueryAccessSubscriber object.

Parameters

\Drupal\commerce_cart\CartProviderInterface $cart_provider: The cart provider.

\Drupal\commerce_cart\CartSessionInterface $cart_session: The cart session.

File

modules/cart/src/EventSubscriber/QueryAccessSubscriber.php, line 34

Class

QueryAccessSubscriber

Namespace

Drupal\commerce_cart\EventSubscriber

Code

public function __construct(CartProviderInterface $cart_provider, CartSessionInterface $cart_session) {
  $this->cartProvider = $cart_provider;
  $this->cartSession = $cart_session;
}