diff --git a/src/Di/DiAbstractServiceFactory.php b/src/Di/DiAbstractServiceFactory.php index a68a186d..71bf7670 100644 --- a/src/Di/DiAbstractServiceFactory.php +++ b/src/Di/DiAbstractServiceFactory.php @@ -40,10 +40,10 @@ public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $ { $this->serviceLocator = $serviceLocator; if ($requestedName) { - return $this->get($requestedName, array(), true); + return $this->get($requestedName, array()); } - return $this->get($serviceName, array(), true); + return $this->get($serviceName, array()); } /** diff --git a/src/Di/DiServiceFactory.php b/src/Di/DiServiceFactory.php index 550fe1b5..0139f1ce 100644 --- a/src/Di/DiServiceFactory.php +++ b/src/Di/DiServiceFactory.php @@ -81,7 +81,7 @@ public function __construct(Di $di, $name, array $parameters = array(), $useServ public function createService(ServiceLocatorInterface $serviceLocator) { $this->serviceLocator = $serviceLocator; - return $this->get($this->name, $this->parameters, true); + return $this->get($this->name, $this->parameters); } /**