Skip to content

Commit

Permalink
fix BC
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Torresi committed Oct 18, 2013
1 parent f69a41a commit 0a56163
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/Zend/ServiceManager/ServiceManager.php
Expand Up @@ -1042,8 +1042,10 @@ protected function createDelegatorFromFactory($canonicalName, $requestedName)


$delegatorFactory = $this->delegators[$canonicalName][$i]; $delegatorFactory = $this->delegators[$canonicalName][$i];


if (is_string($delegatorFactory) && class_exists($delegatorFactory, true)) { if (is_string($delegatorFactory)) {
$delegatorFactory = new $delegatorFactory; $delegatorFactory = !$this->has($delegatorFactory) && class_exists($delegatorFactory, true) ?
new $delegatorFactory
: $this->get($delegatorFactory);
$this->delegators[$canonicalName][$i] = $delegatorFactory; $this->delegators[$canonicalName][$i] = $delegatorFactory;
} }


Expand Down

0 comments on commit 0a56163

Please sign in to comment.