We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86e4cac commit e6ae509Copy full SHA for e6ae509
src/Listener/MvcFactory.php
@@ -5,18 +5,24 @@
5
namespace ErrorHeroModule\Listener;
6
7
use ErrorHeroModule\Handler\Logging;
8
+use Laminas\View\Renderer\PhpRenderer;
9
use Psr\Container\ContainerInterface;
10
11
class MvcFactory
12
{
13
public function __invoke(ContainerInterface $container): Mvc
14
15
+ /** @var array $config */
16
$config = $container->get('config');
17
+ /** @var Logging $logging */
18
+ $logging = $container->get(Logging::class);
19
+ /** @var PhpRenderer $viewRenderer */
20
+ $viewRenderer = $container->get('ViewRenderer');
21
22
return new Mvc(
23
$config['error-hero-module'],
- $container->get(Logging::class),
- $container->get('ViewRenderer')
24
+ $logging,
25
+ $viewRenderer
26
);
27
}
28
0 commit comments