'now'
=> (new \
DateTime())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
),
];
// @deprecated tag:v6.6.0 - remove if condition, but keep body
if ($payloadExists) { $data['compressed'
] =
(int) $this->compress;
} $query =
new RetryableQuery($this->connection,
$this->connection->
prepare($sql));
$query->
execute($data);
$this->eventDispatcher->
dispatch(new CartSavedEvent($context,
$cart));
} public function delete(string
$token, SalesChannelContext
$context): void
{ $query =
new RetryableQuery( $this->connection,
$this->connection->
prepare('DELETE FROM `cart` WHERE `token` = :token'
) );
$query->
execute(['token' =>
$token]);
}