29
29
*/
30
30
class ParameterController
31
31
{
32
- /**
33
- * @var ParameterManagerInterface
34
- */
35
- private $ parameterManager ;
32
+ private ParameterManagerInterface $ parameterManager ;
36
33
37
- /**
38
- * @var ExportManagerInterface
39
- */
40
- private $ exportManager ;
34
+ private ExportManagerInterface $ exportManager ;
41
35
42
- /**
43
- * @var ImportManagerInterface
44
- */
45
- private $ importManager ;
36
+ private ImportManagerInterface $ importManager ;
46
37
47
- /**
48
- * @var RequestStack
49
- */
50
- private $ requestStack ;
38
+ private RequestStack $ requestStack ;
51
39
52
- /**
53
- * @var FormFactoryInterface
54
- */
55
- private $ formFactory ;
40
+ private FormFactoryInterface $ formFactory ;
56
41
57
- /**
58
- * @var EventDispatcherInterface
59
- */
60
- private $ eventDispatcher ;
42
+ private EventDispatcherInterface $ eventDispatcher ;
61
43
62
- /**
63
- * @var UrlGeneratorInterface
64
- */
65
- private $ urlGenerator ;
44
+ private UrlGeneratorInterface $ urlGenerator ;
66
45
67
- /**
68
- * @var Environment
69
- */
70
- private $ twig ;
46
+ private Environment $ twig ;
71
47
72
- /**
73
- * @var string
74
- */
75
- private $ editFormTemplate ;
48
+ private string $ editFormTemplate ;
76
49
77
- /**
78
- * @var string
79
- */
80
- private $ importFormTemplate ;
50
+ private string $ importFormTemplate ;
81
51
82
- /**
83
- * @var string
84
- */
85
- private $ redirectAfterImportRoute ;
52
+ private string $ redirectAfterImportRoute ;
86
53
87
54
/**
88
55
* ParameterController constructor.
89
- *
90
- * @param ParameterManagerInterface $parameterManager
91
- * @param ExportManagerInterface $exportManager
92
- * @param ImportManagerInterface $importManager
93
- * @param EventDispatcherInterface $eventDispatcher
94
- * @param RequestStack $requestStack
95
- * @param FormFactoryInterface $formFactory
96
- * @param UrlGeneratorInterface $urlGenerator
97
- * @param Environment $twig
98
- * @param string $editFormTemplate
99
- * @param string $importFormTemplate
100
- * @param string $redirectAfterImportRoute
101
56
*/
102
57
public function __construct (
103
58
ParameterManagerInterface $ parameterManager ,
@@ -126,10 +81,6 @@ public function __construct(
126
81
}
127
82
128
83
/**
129
- * @param Request $request
130
- *
131
- * @return Response
132
- *
133
84
* @throws LoaderError
134
85
* @throws RuntimeError
135
86
* @throws SyntaxError
@@ -171,9 +122,6 @@ public function listAction(Request $request): Response
171
122
]));
172
123
}
173
124
174
- /**
175
- * @return Response
176
- */
177
125
public function exportAction (): Response
178
126
{
179
127
$ response = new Response ($ this ->exportManager ->exportAsString ());
@@ -187,10 +135,6 @@ public function exportAction(): Response
187
135
}
188
136
189
137
/**
190
- * @param Request $request
191
- *
192
- * @return Response
193
- *
194
138
* @throws LoaderError
195
139
* @throws RuntimeError
196
140
* @throws SyntaxError
0 commit comments