/**
* {@inheritdoc}
*/
public function load(CustomerInterface $customer)
{
$basket = $this->getFromSession($customer);
if (!$basket) {
$basket = $this->basketManager->create();
$basket->setLocale($customer->getLocale());
$basket->setCurrency($this->currencyDetector->getCurrency());
}
$basket->setCustomer($customer);
$this->basketBuilder->build($basket);
return $basket;
}