1 | <?php |
||
25 | class BatchFormValidRequestHandler extends AbstractFormValidRequestHandler |
||
26 | { |
||
27 | /** |
||
28 | * @var \FSi\Bundle\AdminBundle\Message\FlashMessages |
||
29 | */ |
||
30 | private $flashMessages; |
||
31 | |||
32 | /** |
||
33 | * @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher |
||
34 | * @param \Symfony\Component\Routing\RouterInterface $router |
||
35 | * @param \FSi\Bundle\AdminBundle\Message\FlashMessages|null |
||
36 | */ |
||
37 | public function __construct( |
||
45 | |||
46 | /** |
||
47 | * @param \FSi\Bundle\AdminBundle\Event\FormEvent $event |
||
48 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
49 | */ |
||
50 | protected function action(FormEvent $event, Request $request) |
||
65 | |||
66 | /** |
||
67 | * @param \FSi\Bundle\AdminBundle\Admin\CRUD\BatchElement $element |
||
68 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
69 | * @return array |
||
70 | * @throws \FSi\Bundle\AdminBundle\Exception\RequestHandlerException |
||
71 | */ |
||
72 | private function getObjects(BatchElement $element, Request $request) |
||
93 | |||
94 | /** |
||
95 | * @param \FSi\Bundle\AdminBundle\Event\FormEvent $event |
||
96 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
97 | * @return bool |
||
98 | */ |
||
99 | protected function isValidPostRequest(FormEvent $event, Request $request) |
||
114 | |||
115 | /** |
||
116 | * @param FormEvent $event |
||
117 | * @param Request $request |
||
118 | * @return RedirectResponse |
||
119 | */ |
||
120 | protected function getRedirectResponse(FormEvent $event, Request $request) |
||
128 | |||
129 | /** |
||
130 | * @return string |
||
131 | */ |
||
132 | protected function getPreSaveEventName() |
||
136 | |||
137 | /** |
||
138 | * @return string |
||
139 | */ |
||
140 | protected function getPostSaveEventName() |
||
144 | |||
145 | private function setWarningMessage() |
||
151 | } |
||
152 |