ver. 0.271 - ShopAttribute refactor + update package

This commit is contained in:
2026-02-14 21:12:17 +01:00
parent 34e23338da
commit e51ac7f82b
27 changed files with 2367 additions and 726 deletions

View File

@@ -316,6 +316,14 @@ class Site
new \Domain\Coupon\CouponRepository( $mdb )
);
},
'ShopAttribute' => function() {
global $mdb;
return new \admin\Controllers\ShopAttributeController(
new \Domain\Attribute\AttributeRepository( $mdb ),
new \Domain\Languages\LanguagesRepository( $mdb )
);
},
'ShopPaymentMethod' => function() {
global $mdb;
@@ -406,6 +414,12 @@ class Site
{
return $controller->$action();
}
if ( $moduleName === 'ShopAttribute' )
{
\S::alert( 'Nieprawidłowy adres url.' );
return false;
}
}
}