[AdminBundle] Add base form type for PromotionCouponGeneratorInstructionType

This commit is contained in:
Wojdylak 2024-10-25 12:22:32 +02:00
parent 60919f542c
commit 354deae356
No known key found for this signature in database
GPG key ID: 7509E560A6821ABE
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,30 @@
<?php
/*
* This file is part of the Sylius package.
*
* (c) Sylius Sp. z o.o.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\AdminBundle\Form\Type;
use Sylius\Bundle\PromotionBundle\Form\Type\PromotionCouponGeneratorInstructionType as BasePromotionCouponGeneratorInstructionType;
use Symfony\Component\Form\AbstractType;
final class PromotionCouponGeneratorInstructionType extends AbstractType
{
public function getBlockPrefix(): string
{
return 'sylius_admin_promotion_coupon_generator_instruction';
}
public function getParent(): string
{
return BasePromotionCouponGeneratorInstructionType::class;
}
}

View file

@ -150,6 +150,10 @@
<tag name="form.type" />
</service>
<service id="sylius_admin.form.type.promotion_coupon_generator_instruction" class="Sylius\Bundle\AdminBundle\Form\Type\PromotionCouponGeneratorInstructionType" >
<tag name="form.type" />
</service>
<service id="sylius_admin.form.type.shipping_category" class="Sylius\Bundle\AdminBundle\Form\Type\ShippingCategoryType" >
<tag name="form.type" />
</service>