code: public function validate(Container $container,$validatorName,$value){
  		$validator=new $validatorName();
  		return $container->getService('validator')->validate($validator,$value);
  	}
docs: Execute validator
  
  @param Container $container
  @param string $validatorName
  @param mixed $value
  @return string