Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function execute() |
||
14 | { |
||
15 | /** @var Form $form */ |
||
16 | $form = $this->getFromResponse('form'); |
||
17 | $form->handleRequest($this->request); |
||
18 | |||
19 | if (!$form->isSubmitted()) { |
||
20 | throw new BadRequestHttpException('Form is supposed to be submitted with this request'); |
||
21 | } |
||
22 | |||
23 | return $this->createResponse(['form' => $form]); |
||
24 | } |
||
31 | } |