Skip to content

Commit

Permalink
zendframework#6266 - Service manager aliases should be stored locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed May 20, 2014
1 parent f1e45fb commit 8334555
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/Zend/Mvc/Service/ServiceManagerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ class ServiceManagerConfig extends Config
* @var array
*/
protected $aliases = array(
'Zend\EventManager\EventManagerInterface' => 'EventManager',
'Zend\EventManager\EventManagerInterface' => 'EventManager',
'Zend\ServiceManager\ServiceLocatorInterface' => 'ServiceManager',
'Zend\ServiceManager\ServiceManager' => 'ServiceManager',
);

/**
Expand Down Expand Up @@ -141,7 +143,5 @@ public function configureServiceManager(ServiceManager $serviceManager)
});

$serviceManager->setService('ServiceManager', $serviceManager);
$serviceManager->setAlias('Zend\ServiceManager\ServiceLocatorInterface', 'ServiceManager');
$serviceManager->setAlias('Zend\ServiceManager\ServiceManager', 'ServiceManager');
}
}

0 comments on commit 8334555

Please sign in to comment.