|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
-
- namespace Lc\ShopBundle\Form\Backend\Order;
-
-
- use Doctrine\ORM\EntityManagerInterface;
- use Lc\ShopBundle\Context\OrderPaymentInterface;
- use Lc\ShopBundle\Context\OrderShopInterface;
- use Lc\ShopBundle\Model\OrderPayment;
- use Lc\ShopBundle\Services\Utils;
- use Symfony\Component\Form\AbstractType;
- use Symfony\Component\Form\Extension\Core\Type\ButtonType;
- use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
- use Symfony\Component\Form\Extension\Core\Type\DateType;
- use Symfony\Component\Form\Extension\Core\Type\HiddenType;
- use Symfony\Component\Form\Extension\Core\Type\MoneyType;
- use Symfony\Component\Form\Extension\Core\Type\NumberType;
- use Symfony\Component\Form\Extension\Core\Type\TextareaType;
- use Symfony\Component\Form\Extension\Core\Type\TextType;
- use Symfony\Component\Form\FormBuilderInterface;
- use Symfony\Component\OptionsResolver\OptionsResolver;
-
- class OrderSendPaymentLink extends AbstractType
- {
- protected $em;
-
- public function __construct(EntityManagerInterface $em)
- {
- $this->em = $em;
- }
-
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- $builder
-
- ->add('send', ButtonType::class, array(
- 'label' => 'action.send'
- ));
-
-
- }
-
- public function configureOptions(OptionsResolver $resolver)
- {
- $resolver->setDefaults([
- 'data_class' => $this->em->getClassMetadata(OrderShopInterface::class)->getName(),
- 'translation_domain' => 'lcshop'
- ]);
- }
- }
|