You are here

public function CartSession::__construct in Commerce Core 8.2

Constructs a new CartSession object.

Parameters

\Symfony\Component\HttpFoundation\Session\SessionInterface $session: The session.

File

modules/cart/src/CartSession.php, line 25

Class

CartSession
Default implementation of the cart session.

Namespace

Drupal\commerce_cart

Code

public function __construct(SessionInterface $session) {
  $this->session = $session;
}