ver. 0.290: ShopCoupon + ShopOrder frontend migration to Domain + Controllers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-17 19:54:21 +01:00
parent a35d26225a
commit 1ba0c12327
29 changed files with 936 additions and 419 deletions

View File

@@ -168,7 +168,10 @@ class Site
);
},
'ShopBasket' => function() {
return new \front\Controllers\ShopBasketController();
global $mdb;
return new \front\Controllers\ShopBasketController(
new \Domain\Order\OrderRepository( $mdb )
);
},
'ShopClient' => function() {
global $mdb;
@@ -176,6 +179,18 @@ class Site
new \Domain\Client\ClientRepository( $mdb )
);
},
'ShopCoupon' => function() {
global $mdb;
return new \front\Controllers\ShopCouponController(
new \Domain\Coupon\CouponRepository( $mdb )
);
},
'ShopOrder' => function() {
global $mdb;
return new \front\Controllers\ShopOrderController(
new \Domain\Order\OrderRepository( $mdb )
);
},
];
}
}