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

Commit

Permalink
Merge pull request #77 from pine3ree/patch-1
Browse files Browse the repository at this point in the history
fix performance issues using sm3 configure()
  • Loading branch information
weierophinney committed Jun 7, 2016
2 parents f0eb2aa + 9e57490 commit e6e17e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/View/HelperConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ public function configureServiceManager(ServiceManager $serviceManager)
{
$config = $this->toArray();

if (method_exists($serviceManager, 'configure')) {
$serviceManager->configure($config);
return $serviceManager;
}

foreach ($config['factories'] as $service => $factory) {
$serviceManager->setFactory($service, $factory);
}

foreach ($config['aliases'] as $alias => $target) {
$serviceManager->setAlias($alias, $target);
}
Expand Down

0 comments on commit e6e17e1

Please sign in to comment.