$ids =
new IdsCollection([ 'currency' => Defaults::CURRENCY,
'api-type' => Defaults::SALES_CHANNEL_TYPE_API,
'comparison-type' => Defaults::SALES_CHANNEL_TYPE_PRODUCT_COMPARISON,
'storefront-type' => Defaults::SALES_CHANNEL_TYPE_STOREFRONT,
'language' => Defaults::LANGUAGE_SYSTEM,
'locale' =>
$this->
getLocaleIdOfSystemLanguage(),
'es-locale' =>
$this->
getLocaleIdFromLocaleCode('es-ES'
),
]);
} $content =
$this->
replaceIds($ids,
$content);
$this->
sync(\
json_decode($content, true, 512, \JSON_THROW_ON_ERROR
));
$this->
getContainer()->
get(EntityIndexerRegistry::
class)->
index(false
);
return $ids;
} public function getContainer(): ContainerInterface
{ return $this->container;
}