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

Commit f6f41a2

Browse files
committed
Merge branch 'hotfix/77' into develop
Forward port #77
2 parents 976f3ad + 08dd73a commit f6f41a2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ All notable changes to this project will be documented in this file, in reverse
3838

3939
### Fixed
4040

41-
- Nothing.
41+
- [#77](https://github.com/zendframework/zend-form/pull/77) updates
42+
`Zend\Form\View\HelperConfig` to improve performance when running under
43+
zend-servicemanager v3.
4244

4345
## 2.8.3 - 2016-05-03
4446

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)