|
|
@@ -32,6 +32,7 @@ class TicketFormType extends SovTicketFormType |
|
|
|
protected OrderShopStore $orderShopStore; |
|
|
|
protected PriceSolver $priceSolver; |
|
|
|
protected SectionStore $sectionStore; |
|
|
|
protected TicketSolver $ticketSolver; |
|
|
|
|
|
|
|
public function __construct( |
|
|
|
Security $security, |
|
|
@@ -43,13 +44,14 @@ class TicketFormType extends SovTicketFormType |
|
|
|
PriceSolver $priceSolver, |
|
|
|
SectionStore $sectionStore |
|
|
|
) { |
|
|
|
parent::__construct($entityManager, $translatorAdmin, $ticketSolver); |
|
|
|
parent::__construct($entityManager, $translatorAdmin); |
|
|
|
|
|
|
|
$this->security = $security; |
|
|
|
$this->formComponent = $formComponent; |
|
|
|
$this->orderShopStore = $orderShopStore; |
|
|
|
$this->priceSolver = $priceSolver; |
|
|
|
$this->sectionStore = $sectionStore; |
|
|
|
$this->ticketSolver = $ticketSolver; |
|
|
|
} |
|
|
|
|
|
|
|
public function buildForm(FormBuilderInterface $builder, array $options) |
|
|
@@ -99,7 +101,7 @@ class TicketFormType extends SovTicketFormType |
|
|
|
[ |
|
|
|
'label' => 'Type', |
|
|
|
'choices' => $this->translatorAdmin->transChoices( |
|
|
|
TicketSolver::getTypeChoices(), |
|
|
|
$this->ticketSolver->getTypeChoices('frontend'), |
|
|
|
'Ticket', |
|
|
|
'type' |
|
|
|
), |