diff --git a/composer.json b/composer.json index 5e40198b52..f3922a9118 100644 --- a/composer.json +++ b/composer.json @@ -67,7 +67,9 @@ }, "sort-packages": true, "allow-plugins": { - "symfony/flex": true + "symfony/flex": true, + "dealerdirect/phpcodesniffer-composer-installer": false, + "phpstan/extension-installer": false } }, "extra": { diff --git a/config/packages/_sylius.yaml b/config/packages/_sylius.yaml index 6acae4415b..1da29b94d8 100644 --- a/config/packages/_sylius.yaml +++ b/config/packages/_sylius.yaml @@ -162,6 +162,15 @@ sylius_product: sylius_promotion: resources: + catalog_promotion: + classes: + model: App\Entity\Promotion\CatalogPromotion + catalog_promotion_action: + classes: + model: App\Entity\Promotion\CatalogPromotionAction + catalog_promotion_scope: + classes: + model: App\Entity\Promotion\CatalogPromotionScope promotion: classes: model: App\Entity\Promotion\Promotion diff --git a/src/Entity/Promotion/CatalogPromotion.php b/src/Entity/Promotion/CatalogPromotion.php new file mode 100644 index 0000000000..7928a6c31e --- /dev/null +++ b/src/Entity/Promotion/CatalogPromotion.php @@ -0,0 +1,16 @@ +