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

Commit e6e17e1

Browse files
committed
Merge pull request #77 from pine3ree/patch-1
fix performance issues using sm3 configure()
2 parents f0eb2aa + 9e57490 commit e6e17e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/View/HelperConfig.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@ public function configureServiceManager(ServiceManager $serviceManager)
3333
{
3434
$config = $this->toArray();
3535

36+
if (method_exists($serviceManager, 'configure')) {
37+
$serviceManager->configure($config);
38+
return $serviceManager;
39+
}
40+
3641
foreach ($config['factories'] as $service => $factory) {
3742
$serviceManager->setFactory($service, $factory);
3843
}
39-
4044
foreach ($config['aliases'] as $alias => $target) {
4145
$serviceManager->setAlias($alias, $target);
4246
}

0 commit comments

Comments
 (0)