for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Shopware\Core\Checkout\Cart\Event;
use Shopware\Core\Checkout\Cart\Cart;
use Shopware\Core\Framework\Log\Package;
use Shopware\Core\System\SalesChannel\SalesChannelContext;
use Symfony\Contracts\EventDispatcher\Event;
#[Package('checkout')]
class CartLoadedEvent extends Event
{
/**
* @internal
*/
public function __construct(
protected readonly Cart $cart,
protected readonly SalesChannelContext $salesChannelContext,
) {
}
public function getCart(): Cart
return $this->cart;
public function getSalesChannelContext(): SalesChannelContext
return $this->salesChannelContext;