public function getDecorated(): AbstractCurrencyRoute
{ throw new DecorationPatternException(self::
class);
} #[Route(path: '/store-api/currency', name: 'store-api.currency', methods: ['GET', 'POST'], defaults: ['_entity' => 'currency'])]
public function load(Request
$request, SalesChannelContext
$context, Criteria
$criteria): CurrencyRouteResponse
{ /** @var CurrencyCollection $currencyCollection */
$currencyCollection =
$this->currencyRepository->
search($criteria,
$context)->
getEntities();
return new CurrencyRouteResponse($currencyCollection);
}}