public function __construct(private readonly SalesChannelRepository
$countryRepository) { } #[Route(path: '/store-api/country', name: 'store-api.country', methods: ['GET', 'POST'], defaults: ['_entity' => 'country'])]
public function load(Request
$request, Criteria
$criteria, SalesChannelContext
$context): CountryRouteResponse
{ $criteria->
addFilter(new EqualsFilter('active', true
));
$result =
$this->countryRepository->
search($criteria,
$context);
return new CountryRouteResponse($result);
} protected function getDecorated(): AbstractCountryRoute
{ throw new DecorationPatternException(self::
class);
}}