public function CartManager::__construct in Ubercart 8.4
Constructor.
Parameters
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.
\Symfony\Component\HttpFoundation\Session\SessionInterface $session: The session.
File
- uc_cart/
src/ CartManager.php, line 38
Class
- CartManager
- Provides the cart manager service.
Namespace
Drupal\uc_cartCode
public function __construct(AccountProxyInterface $current_user, SessionInterface $session) {
$this->currentUser = $current_user;
$this->session = $session;
}