Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 0cceaf8

Browse files
committed
Added view_helpers modulemanager feature
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
1 parent 525c682 commit 0cceaf8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/LaminasModuleProvider.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Laminas\ModuleManager\Feature\SerializerProviderInterface;
2222
use Laminas\ModuleManager\Feature\ServiceProviderInterface;
2323
use Laminas\ModuleManager\Feature\ValidatorProviderInterface;
24+
use Laminas\ModuleManager\Feature\ViewHelperProviderInterface;
2425
use Traversable;
2526

2627
/**
@@ -62,6 +63,7 @@ public function __invoke() : array
6263
'hydrators' => $this->getHydratorConfig(),
6364
'input_filters' => $this->getInputFilterConfig(),
6465
'serializers' => $this->getSerializerConfig(),
66+
'view_helpers' => $this->getViewHelperConfig(),
6567
]));
6668
}
6769

@@ -177,7 +179,7 @@ public function getHydratorConfig() : array
177179
return $this->convert($this->module->getHydratorConfig());
178180
}
179181

180-
public function getInputFilterConfig()
182+
public function getInputFilterConfig() /* : array */
181183
{
182184
if (! $this->module instanceof InputFilterProviderInterface) {
183185
return [];
@@ -194,4 +196,13 @@ public function getSerializerConfig() : array
194196

195197
return $this->convert($this->module->getSerializerConfig());
196198
}
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+
}
197208
}

0 commit comments

Comments
 (0)