refactor(shop-coupon): migrate admin module to DI and release 0.266

This commit is contained in:
2026-02-14 00:05:23 +01:00
parent 46a60f3679
commit 3dad04f927
40 changed files with 1668 additions and 426 deletions

View File

@@ -309,6 +309,13 @@ class Site
new \Domain\Promotion\PromotionRepository( $mdb )
);
},
'ShopCoupon' => function() {
global $mdb;
return new \admin\Controllers\ShopCouponController(
new \Domain\Coupon\CouponRepository( $mdb )
);
},
'Pages' => function() {
global $mdb;