sathyashrayan

AttributeValidator.php

May 17th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?php
  2. namespace MarketPlace\Attributes\Factory;
  3.  
  4. use Zend\ServiceManager\FactoryInterface;
  5. use Zend\ServiceManager\ServiceLocatorInterface;
  6. use MarketPlace\Attributes\Service\ValidationListInterface;
  7.  
  8.  
  9. class AttributeValidator implements FactoryInterface
  10. {
  11.     public function createService(ServiceLocatorInterface $serviceLocator){
  12.                
  13.         $validationList = $serviceLocator->get('ValidatorManager')->getRegisteredServices();
  14.         return $validationList;
  15.     }
  16.    
  17.    
  18. }
Add Comment
Please, Sign In to add comment