/**
  * Creates JsValidator instance based on Validator.
  *
  * @param Validator $validator
  * @param string|null       $selector
  *
  * @return Manager
  */
 protected function jsValidator(Validator $validator, $selector = null)
 {
     $this->manager->selector($selector);
     $this->manager->setValidator($validator);
     return $this->manager;
 }
Пример #2
0
 /**
  * Creates JsValidator instance based on Validator.
  *
  * @param ValidatorContract $validator
  * @param string|null       $selector
  *
  * @return Manager
  */
 protected function createValidator(ValidatorContract $validator, $selector = null)
 {
     $this->manager->selector($selector);
     $this->manager->setValidator($validator);
     return $this->manager;
 }