Skip to content

Commit

Permalink
feat: pseventbus v4 customers (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
fox-john authored Sep 20, 2024
1 parent b00e719 commit ea3c827
Show file tree
Hide file tree
Showing 11 changed files with 221 additions and 289 deletions.
106 changes: 0 additions & 106 deletions OLD/Provider/CustomerDataProvider.php

This file was deleted.

4 changes: 4 additions & 0 deletions config/common/new-repository.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ services:
PrestaShop\Module\PsEventbus\Repository\NewRepository\CategoryRepository:
class: PrestaShop\Module\PsEventbus\Repository\NewRepository\CategoryRepository
public: true

PrestaShop\Module\PsEventbus\Repository\NewRepository\CustomerRepository:
class: PrestaShop\Module\PsEventbus\Repository\NewRepository\CustomerRepository
public: true
6 changes: 0 additions & 6 deletions config/common/repository.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ services:
arguments:
- '@=service("prestashop.adapter.legacy.context").getContext()'

PrestaShop\Module\PsEventbus\Repository\CustomerRepository:
class: PrestaShop\Module\PsEventbus\Repository\CustomerRepository
public: true
arguments:
- '@=service("prestashop.adapter.legacy.context").getContext()'

PrestaShop\Module\PsEventbus\Repository\CurrencyRepository:
class: PrestaShop\Module\PsEventbus\Repository\CurrencyRepository
public: true
Expand Down
6 changes: 6 additions & 0 deletions config/front/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,9 @@ services:
public: true
arguments:
- '@PrestaShop\Module\PsEventbus\Repository\NewRepository\CategoryRepository'

PrestaShop\Module\PsEventbus\Service\ShopContent\CustomersService:
class: PrestaShop\Module\PsEventbus\Service\ShopContent\CustomersService
public: true
arguments:
- '@PrestaShop\Module\PsEventbus\Repository\NewRepository\CustomerRepository'
2 changes: 1 addition & 1 deletion e2e/src/helpers/mock-probe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function probe(

return socket.pipe(
filter((message) => (match ? R.whereEq(match, message) : true)),
takeUntil(timer(options.timeout))
takeUntil(timer(options.timeout)),
);
}

Expand Down
3 changes: 2 additions & 1 deletion e2e/src/helpers/shop-contents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export const shopContentMapping = {
product_bundles: "product-bundles",
product_suppliers: "product-suppliers",
product_carriers: "product-carriers",
categories: "categories"
categories: "categories",
customers: "customers",
} as const;

type ShopContentMapping = typeof shopContentMapping;
Expand Down
47 changes: 0 additions & 47 deletions src/Decorator/CustomerDecorator.php

This file was deleted.

127 changes: 0 additions & 127 deletions src/Repository/CustomerRepository.php

This file was deleted.

Loading

0 comments on commit ea3c827

Please sign in to comment.