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

Commit

Permalink
Merge branch 'master' of https://github.com/zendframework/zf2
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpedersen committed Sep 18, 2012
3 parents 6335bda + c5fc623 + ceec2bd commit 56c198e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ 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);
Expand Down

0 comments on commit 56c198e

Please sign in to comment.