Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit 8d087c3

Browse files
committed
Merge pull request #24 from pine3ree/patch-2
configure only if config array not empty
2 parents 43d364a + 99af09a commit 8d087c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/HelperPluginManagerFactory.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ public function __invoke(ContainerInterface $container)
2121

2222
$config = $container->has('config') ? $container->get('config') : [];
2323
$config = isset($config['view_helpers']) ? $config['view_helpers'] : [];
24-
(new Config($config))->configureServiceManager($manager);
24+
25+
if (! empty($config)) {
26+
(new Config($config))->configureServiceManager($manager);
27+
}
2528

2629
return $manager;
2730
}

0 commit comments

Comments
 (0)