mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
[AdminBundle] Add base form type for PromotionCouponGeneratorInstructionType
This commit is contained in:
parent
60919f542c
commit
354deae356
2 changed files with 34 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue