1 | <?php |
||
27 | class PresetMiddlewares implements DataPreProcessorInterface |
||
28 | { |
||
29 | use MagicMethodsTrait; |
||
30 | |||
31 | /** |
||
32 | * @var \Romm\Formz\Middleware\Item\FormInjection\FormInjectionMiddleware |
||
33 | */ |
||
34 | protected $formInjectionMiddleware; |
||
35 | |||
36 | /** |
||
37 | * @var \Romm\Formz\Middleware\Item\FormValidation\FormValidationMiddleware |
||
38 | */ |
||
39 | protected $formValidationMiddleware; |
||
40 | |||
41 | /** |
||
42 | * @var \Romm\Formz\Middleware\Item\Persistence\PersistenceInjectionMiddleware |
||
43 | */ |
||
44 | protected $persistenceInjectionMiddleware; |
||
45 | |||
46 | /** |
||
47 | * @var \Romm\Formz\Middleware\Item\Persistence\PersistenceFetchingMiddleware |
||
48 | */ |
||
49 | protected $persistenceFetchingMiddleware; |
||
50 | |||
51 | /** |
||
52 | * @var \Romm\Formz\Middleware\Item\Step\StepFetchingMiddleware |
||
53 | */ |
||
54 | protected $stepFetchingMiddleware; |
||
55 | |||
56 | /** |
||
57 | * @var \Romm\Formz\Middleware\Item\Step\StepDispatchingMiddleware |
||
58 | */ |
||
59 | protected $stepDispatchingMiddleware; |
||
60 | |||
61 | /** |
||
62 | * Returns the full list of preset middlewares. |
||
63 | * |
||
64 | * @return MiddlewareInterface[] |
||
65 | */ |
||
66 | public function getList() |
||
70 | |||
71 | /** |
||
72 | * Fills middlewares by default (if they are not filled in configuration). |
||
73 | * |
||
74 | * @param DataPreProcessor $processor |
||
75 | */ |
||
76 | public static function dataPreProcessor(DataPreProcessor $processor) |
||
88 | |||
89 | /** |
||
90 | * @return FormInjectionMiddleware |
||
91 | */ |
||
92 | public function getFormInjectionMiddleware() |
||
96 | |||
97 | /** |
||
98 | * @return FormValidationMiddleware |
||
99 | */ |
||
100 | public function getFormValidationMiddleware() |
||
104 | |||
105 | /** |
||
106 | * @return PersistenceInjectionMiddleware |
||
107 | */ |
||
108 | public function getPersistenceInjectionMiddleware() |
||
112 | |||
113 | /** |
||
114 | * @return PersistenceFetchingMiddleware |
||
115 | */ |
||
116 | public function getPersistenceFetchingMiddleware() |
||
120 | |||
121 | /** |
||
122 | * @return StepFetchingMiddleware |
||
123 | */ |
||
124 | public function getStepFetchingMiddleware() |
||
128 | |||
129 | /** |
||
130 | * @return StepDispatchingMiddleware |
||
131 | */ |
||
132 | public function getStepDispatchingMiddleware() |
||
136 | } |
||
137 |