Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing problem with 5.3 compatibility (wrong context for $this)

  • Loading branch information...
commit 020b28ac69e3d6b55e14b01c80f7c5c9e96771de 1 parent b0f3c4d
@Ocramius authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 library/Zend/ServiceManager/ServiceManager.php
View
4 library/Zend/ServiceManager/ServiceManager.php
@@ -561,9 +561,9 @@ private function createDelegateCallback($delegateFactoryName, $rName, $cName, $c
return function () use ($serviceManager, $delegateFactoryName, $rName, $cName, $creationCallback) {
/* @var $delegateFactory DelegateFactoryInterface */
- $delegateFactory = $this->get($delegateFactoryName);
+ $delegateFactory = $serviceManager->get($delegateFactoryName);
- return $delegateFactory->createDelegateWithName($this, $cName, $rName, $creationCallback);
+ return $delegateFactory->createDelegateWithName($serviceManager, $cName, $rName, $creationCallback);
};
}
Please sign in to comment.
Something went wrong with that request. Please try again.