Update library/Zend/ServiceManager/Config.php #2372

Closed
wants to merge 1 commit into
from
@@ -61,9 +61,10 @@ public function getShared()
public function configureServiceManager(ServiceManager $serviceManager)
{
- $allowOverride = $this->getAllowOverride();
- isset($allowOverride) ? $serviceManager->setAllowOverride($allowOverride) : null;
-
+ if (($allowOverride = $this->getAllowOverride()) !== null) {
+ $serviceManager->setAllowOverride($allowOverride);
+ }
+
foreach ($this->getFactories() as $name => $factory) {
$serviceManager->setFactory($name, $factory);
}