This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 21
21
use Laminas \ModuleManager \Feature \SerializerProviderInterface ;
22
22
use Laminas \ModuleManager \Feature \ServiceProviderInterface ;
23
23
use Laminas \ModuleManager \Feature \ValidatorProviderInterface ;
24
+ use Laminas \ModuleManager \Feature \ViewHelperProviderInterface ;
24
25
use Traversable ;
25
26
26
27
/**
@@ -62,6 +63,7 @@ public function __invoke() : array
62
63
'hydrators ' => $ this ->getHydratorConfig (),
63
64
'input_filters ' => $ this ->getInputFilterConfig (),
64
65
'serializers ' => $ this ->getSerializerConfig (),
66
+ 'view_helpers ' => $ this ->getViewHelperConfig (),
65
67
]));
66
68
}
67
69
@@ -177,7 +179,7 @@ public function getHydratorConfig() : array
177
179
return $ this ->convert ($ this ->module ->getHydratorConfig ());
178
180
}
179
181
180
- public function getInputFilterConfig ()
182
+ public function getInputFilterConfig () /* : array */
181
183
{
182
184
if (! $ this ->module instanceof InputFilterProviderInterface) {
183
185
return [];
@@ -194,4 +196,13 @@ public function getSerializerConfig() : array
194
196
195
197
return $ this ->convert ($ this ->module ->getSerializerConfig ());
196
198
}
199
+
200
+ public function getViewHelperConfig () : array
201
+ {
202
+ if (! $ this ->module instanceof ViewHelperProviderInterface) {
203
+ return [];
204
+ }
205
+
206
+ return $ this ->convert ($ this ->module ->getViewHelperConfig ());
207
+ }
197
208
}
You can’t perform that action at this time.
0 commit comments