Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace MarketPlace\Attributes\Factory;
- use Zend\ServiceManager\FactoryInterface;
- use Zend\ServiceManager\ServiceLocatorInterface;
- use MarketPlace\Attributes\Service\ValidationListInterface;
- class AttributeValidator implements FactoryInterface
- {
- public function createService(ServiceLocatorInterface $serviceLocator){
- $validationList = $serviceLocator->get('ValidatorManager')->getRegisteredServices();
- return $validationList;
- }
- }
Add Comment
Please, Sign In to add comment