sathyashrayan

module.config.php

May 17th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. 'service_manager' => array(
  2.     'factories' => array(
  3.         'validation_list' => 'MarketPlace\Attributes\Factory\AttributeValidator'
  4.     ),
  5.    
  6.         'initializers' => array(
  7.                        
  8.         'validate_class' => function ($classList,$serviceLocator){
  9.             if($classList instanceof ValidationListInterface){
  10.                 $class_list = $serviceLocator->get('validation_list');
  11.                 $classList->validatorList($class_list);
  12.                 }
  13.                            
  14.             }
  15.         )
  16.   );
Add Comment
Please, Sign In to add comment