Created
October 29, 2012 16:07
-
-
Save alexshelkov/3974486 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Zend\ServiceManager\ServiceLocatorInterface; | |
class SimpleHelperFactory implements \Zend\ServiceManager\FactoryInterface | |
{ | |
public function createService(ServiceLocatorInterface $serviceLocator) | |
{ | |
// Can't do the same here, because of ServiceLocatorInterface | |
$config = $serviceLocator->getServiceLocator()->get('Config'); | |
// Or I can just ignore problem with ServiceLocatorInterface interface here | |
return new SimpleHelper(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment