ver. 0.292: ShopProduct + ShopPaymentMethod + ShopPromotion + ShopStatuses + ShopTransport frontend migration to Domain
Full migration of front\factory\ — entire directory removed (all 20 classes migrated). ProductRepository +20 frontend methods, PromotionRepository +5 applyType methods, TransportRepository +4 cached methods, PaymentMethodRepository +cached frontend methods. Fix: broken transports_list() in ajax.php replaced with forPaymentMethod(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,34 @@ Logi zmian z migracji na Domain-Driven Architecture. Najnowsze na gorze.
|
||||
|
||||
---
|
||||
|
||||
## ver. 0.292 (2026-02-17) - ShopProduct + ShopPaymentMethod + ShopPromotion + ShopStatuses + ShopTransport frontend migration
|
||||
|
||||
- **Pelna migracja front\factory\** — USUNIETY caly folder `autoload/front/factory/` (wszystkie 20 klas zmigrowane do Domain)
|
||||
- **ShopProduct (frontend Stage 1)** — migracja factory + controls na Domain
|
||||
- NOWE METODY w `ProductRepository`: ~20 metod frontendowych (getSkuWithFallback, getEanWithFallback, isProductActiveCached, productCategoriesFront, getWarehouseMessageZero/Nonzero, topProductIds, newProductIds, promotedProductIdsCached, getMinimalPrice, productImageCached, productNameCached, productUrlCached, randomProductIds, productWp)
|
||||
- USUNIETA: `front\factory\class.ShopProduct.php` (~410 linii) — logika przeniesiona do `ProductRepository`
|
||||
- USUNIETA: `front\controls\class.ShopProduct.php` — logika w `ProductRepository` + szablony
|
||||
- UPDATE: callerzy w szablonach, kontrolerach, index.php, cron.php przepieci na repo
|
||||
- **ShopPaymentMethod (frontend)** — migracja factory + view + shop facade na Domain
|
||||
- NOWE METODY w `PaymentMethodRepository`: metody frontendowe z Redis cache (paymentMethodsCached, paymentMethodCached, paymentMethodsByTransportCached)
|
||||
- USUNIETA: `front\factory\class.ShopPaymentMethod.php`, `front\view\class.ShopPaymentMethod.php`, `shop\class.PaymentMethod.php`
|
||||
- UPDATE: callerzy w szablonach i kontrolerach przepieci na `PaymentMethodRepository`
|
||||
- **ShopPromotion (frontend)** — migracja factory na Domain
|
||||
- NOWE METODY w `PromotionRepository`: 5 metod aplikowania promocji (applyTypeWholeBasket, applyTypeCheapestProduct, applyTypeCategoriesOr, applyTypeCategoriesAnd, applyTypeCategoryCondition)
|
||||
- USUNIETA: `front\factory\class.ShopPromotion.php` — logika przeniesiona do `PromotionRepository`
|
||||
- UPDATE: `shop\Promotion::find_promotion()` — 5 wywolan przepietych na repo
|
||||
- **ShopStatuses (frontend)** — rewiring callerow
|
||||
- USUNIETA: `front\factory\class.ShopStatuses.php` — 4 callerzy przepieci bezposrednio na `ShopStatusRepository`
|
||||
- **ShopTransport (frontend)** — migracja factory + view na Domain
|
||||
- NOWE METODY w `TransportRepository`: 4 metody frontendowe (transportMethodsFront, transportCostCached, findActiveByIdCached, forPaymentMethod)
|
||||
- USUNIETA: `front\factory\class.ShopTransport.php`, `front\view\class.ShopTransport.php`
|
||||
- UPDATE: 8 callerow przepietych na `TransportRepository`
|
||||
- FIX: broken `transports_list()` w ajax.php — nowa metoda `forPaymentMethod()`
|
||||
- NOWY: `tests/stubs/ShopProduct.php` — stub `shop\Product` dla testow
|
||||
- Testy: 610 OK, 1816 asercji (+37: 20 ProductRepository, 5 PaymentMethodRepository, 7 PromotionRepository, 5 TransportRepository)
|
||||
|
||||
---
|
||||
|
||||
## ver. 0.291 (2026-02-17) - ShopProducer frontend migration
|
||||
|
||||
- **ShopProducer (frontend)** — migracja controls + shop facade na Domain + Controllers
|
||||
@@ -775,4 +803,4 @@ Logi zmian z migracji na Domain-Driven Architecture. Najnowsze na gorze.
|
||||
- Metoda `clear_product_cache()` w klasie S
|
||||
|
||||
---
|
||||
*Dokument aktualizowany: 2026-02-17 (ver. 0.291)*
|
||||
*Dokument aktualizowany: 2026-02-17 (ver. 0.292)*
|
||||
|
||||
Reference in New Issue
Block a user