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

use sm3 configure when possible #47

Merged
merged 3 commits into from
Jun 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/View/HelperConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,18 @@ class HelperConfig implements ConfigInterface
*/
public function configureServiceManager(ServiceManager $serviceManager)
{
if (method_exists($serviceManager, 'configure')) {
$serviceManager->configure($this->toArray());
return $serviceManager;
}

foreach ($this->factories as $name => $factory) {
$serviceManager->setFactory($name, $factory);
}
foreach ($this->aliases as $alias => $target) {
$serviceManager->setAlias($alias, $target);
}

return $serviceManager;
}

Expand Down