Connection
$connection,
CartMigrationCleanerInterface
$cartMigrationCleaner ) { $this->session =
$session;
$this->cart =
$cart;
$this->connection =
$connection;
$this->cartMigrationCleaner =
$cartMigrationCleaner;
} public function migrate(): void
{ if (!
$this->
canBeMigrated()) { $this->cartMigrationCleaner->
cleanUp();
return;
} $this->connection
->
update( 's_order_basket',
[ 'sessionID' =>
$this->session->
get('sessionId'
),
],
[