Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: pseventbus v4 specific prices #378

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 0 additions & 128 deletions OLD/Provider/CustomPriceDataProvider.php

This file was deleted.

27 changes: 0 additions & 27 deletions config/common/decorator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,10 @@ services:
arguments:
- '@PrestaShop\Module\PsEventbus\Repository\ConfigurationRepository'

PrestaShop\Module\PsEventbus\Decorator\CustomPriceDecorator:
class: PrestaShop\Module\PsEventbus\Decorator\CustomPriceDecorator
public: true
arguments:
- '@=service("prestashop.adapter.legacy.context").getContext()'
- '@PrestaShop\Module\PsEventbus\Service\SpecificPriceService'

PrestaShop\Module\PsEventbus\Decorator\WishlistDecorator:
class: PrestaShop\Module\PsEventbus\Decorator\WishlistDecorator
public: true

PrestaShop\Module\PsEventbus\Decorator\StoreDecorator:
class: PrestaShop\Module\PsEventbus\Decorator\StoreDecorator
public: true

PrestaShop\Module\PsEventbus\Decorator\StockDecorator:
class: PrestaShop\Module\PsEventbus\Decorator\StockDecorator
public: true

PrestaShop\Module\PsEventbus\Decorator\ManufacturerDecorator:
class: PrestaShop\Module\PsEventbus\Decorator\ManufacturerDecorator
public: true

PrestaShop\Module\PsEventbus\Decorator\SupplierDecorator:
class: PrestaShop\Module\PsEventbus\Decorator\SupplierDecorator
public: true

PrestaShop\Module\PsEventbus\Decorator\LanguageDecorator:
class: PrestaShop\Module\PsEventbus\Decorator\LanguageDecorator
public: true

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

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

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

PrestaShop\Module\PsEventbus\Repository\SpecificPriceRepository:
class: PrestaShop\Module\PsEventbus\Repository\SpecificPriceRepository
public: true

PrestaShop\Module\PsEventbus\Repository\StoreRepository:
class: PrestaShop\Module\PsEventbus\Repository\StoreRepository
public: true
Expand Down
13 changes: 7 additions & 6 deletions config/front/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ services:
- '@PrestaShop\Module\PsEventbus\Service\ProxyService'
- '@PrestaShop\Module\PsEventbus\Decorator\PayloadDecorator'

PrestaShop\Module\PsEventbus\Service\SpecificPriceService:
class: PrestaShop\Module\PsEventbus\Service\SpecificPriceService
arguments:
- '@PrestaShop\Module\PsEventbus\Repository\SpecificPriceRepository'
public: true

PrestaShop\Module\PsEventbus\Service\PresenterService:
class: PrestaShop\Module\PsEventbus\Service\PresenterService
public: true
Expand Down Expand Up @@ -247,3 +241,10 @@ services:
public: true
arguments:
- '@PrestaShop\Module\PsEventbus\Repository\NewRepository\StockMvtRepository'

PrestaShop\Module\PsEventbus\Service\ShopContent\SpecificPricesService:
class: PrestaShop\Module\PsEventbus\Service\ShopContent\SpecificPricesService
public: true
arguments:
- '@PrestaShop\Module\PsEventbus\Repository\NewRepository\SpecificPriceRepository'
- '@PrestaShop\Module\PsEventbus\Repository\NewRepository\ProductRepository'
2 changes: 1 addition & 1 deletion e2e/src/helpers/shop-contents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import R from "ramda";
// TEMPORARY DISABLED, WAIT ADD ALL SHOP CONTENT
// AFTER UNCOMMENT THIS, CHANGE ALL "as ShopContent"CAST IN FULLSYNC TEST
/* export const shopContentMapping = {
'specific_prices': 'specific-prices',
'taxonomies': 'taxonomies',
'stores': 'stores',
'suppliers': 'suppliers',
Expand Down Expand Up @@ -34,6 +33,7 @@ export const shopContentMapping = {
product_carriers: "product-carriers",
product_suppliers: "product-suppliers",
shop_details: "shop-details",
specific_prices: "specific-prices",
stocks: "stocks",
stock_mvts: "stock-mvts",
themes: "themes",
Expand Down
160 changes: 0 additions & 160 deletions src/Decorator/CustomPriceDecorator.php

This file was deleted.

Loading
Loading