Conditions | 2 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | protected function handleCommand(FormInterface $form): void |
||
20 | { |
||
21 | try { |
||
22 | $command = new ExportSelectedProductsFromWishlistToPdf($form->get('items')->getData()); |
||
23 | $this->messageBus->dispatch($command); |
||
24 | } catch (HandlerFailedException $ex) { |
||
25 | $this->flashBag->add( |
||
26 | 'error', |
||
27 | 'Select at least one product' |
||
28 | ); |
||
32 |