vendor/shopware/core/Checkout/Cart/Exception/CustomerNotLoggedInException.php line 8

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Checkout\Cart\Exception;
  3. use Shopware\Core\Checkout\Cart\CartException;
  4. use Symfony\Component\HttpFoundation\Response;
  5. class CustomerNotLoggedInException extends CartException
  6. {
  7.     /**
  8.      * @deprecated tag:v6.5.0 - Own __construct will be removed, use \Shopware\Core\Checkout\Cart\CartException::customerNotLoggedIn instead
  9.      */
  10.     public function __construct()
  11.     {
  12.         parent::__construct(
  13.             Response::HTTP_FORBIDDEN,
  14.             self::CUSTOMER_NOT_LOGGED_IN_CODE,
  15.             'Customer is not logged in.'
  16.         );
  17.     }
  18. }