1 | <?php |
||
21 | abstract class AbstractFormHandler |
||
22 | { |
||
23 | /** |
||
24 | * The request the form will process |
||
25 | * |
||
26 | * @var Request |
||
27 | */ |
||
28 | protected $request; |
||
29 | |||
30 | /** |
||
31 | * Constructor. |
||
32 | * |
||
33 | * @param Request $request The request the form will process |
||
34 | */ |
||
35 | public function __construct(Request $request) |
||
39 | |||
40 | /** |
||
41 | * Processes a form |
||
42 | * |
||
43 | * @param FormInterface $form The form we process |
||
44 | * |
||
45 | * @return boolean false if not processed true if processed |
||
46 | */ |
||
47 | public function process(FormInterface $form) |
||
63 | |||
64 | /** |
||
65 | * Do the processing of the valid form. |
||
66 | * |
||
67 | * @param FormInterface $form |
||
68 | */ |
||
69 | abstract public function doProcess(FormInterface $form); |
||
70 | } |
||
71 |