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

Commit

Permalink
Merge branch 'hotfix/3545' into develop
Browse files Browse the repository at this point in the history
Close #3545
Fixes #3537
  • Loading branch information
weierophinney committed Jan 25, 2013
2 parents 72d0461 + 53207e1 commit 266342e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion library/Zend/Mvc/Service/AbstractPluginManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public function createService(ServiceLocatorInterface $serviceLocator)

if (isset($configuration['di']) && $serviceLocator->has('Di')) {
$plugins->addAbstractFactory($serviceLocator->get('DiAbstractServiceFactory'));
$plugins->addInitializer($serviceLocator->get('DiServiceInitializer'));
}

return $plugins;
Expand Down
9 changes: 1 addition & 8 deletions library/Zend/Mvc/Service/DiServiceInitializerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ class DiServiceInitializerFactory implements FactoryInterface
*/
public function createService(ServiceLocatorInterface $serviceLocator)
{
$initializer = new DiServiceInitializer($serviceLocator->get('Di'), $serviceLocator);

if ($serviceLocator instanceof ServiceManager) {
/* @var $serviceLocator ServiceManager */
$serviceLocator->addInitializer($initializer);
}

return $initializer;
return new DiServiceInitializer($serviceLocator->get('Di'), $serviceLocator);
}
}
2 changes: 1 addition & 1 deletion tests/ZendTest/Mvc/Service/DiFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class DiFactoryTest extends \PHPUnit_Framework_TestCase
{
public function testWillInitializeDiAndDiAbstractFactoryAndDiInitializer()
public function testWillInitializeDiAndDiAbstractFactory()
{
$serviceManager = new ServiceManager();
$serviceManager->setService('Config', array('di' => array('')));
Expand Down

0 comments on commit 266342e

Please sign in to comment.