sathyashrayan

EavAttributeInputTypeFactory.php

Mar 21st, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. namespace MarketPlace\Attributes\Factory;
  2.  
  3. use MarketPlace\Attributes\Service\EavAttributeInputTypeService;
  4. use MarketPlace\Attributes\Controller\IndexController;
  5. use Zend\ServiceManager\FactoryInterface;
  6. use Zend\ServiceManager\ServiceLocatorInterface;
  7.  
  8. class EavAttributeInputTypeFactory implements FactoryInterface
  9. {  
  10.     public function createService(ServiceLocatorInterface $serviceLocator)
  11.     {
  12.        
  13.         $realServiceLocator = $serviceLocator->getServiceLocator();
  14.         $postService        = $realServiceLocator->get('MarketPlace\Attributes\Service\EavAttributeInputTypeServiceInterface');
  15.         return new IndexController($postService);      
  16.        
  17.     }
  18. }
Add Comment
Please, Sign In to add comment