src/mako/validator/ValidatorFactory.php
public function create(array $input, array $rules): Validator
	{
		$validator = new Validator($input, $rules, $this->i18n, $this->container);

		foreach($this->rules as $rule => $ruleClass)
		{
			$validator->extend($rule, $ruleClass);
		}

		return $validator;
	}
public function create(array $input, array $rules): Validator
	{
		$validator = new Validator($input, $rules, $this->i18n, $this->container);

		foreach($this->rules as $rule => $ruleClass)
		{
			$validator->extend($rule, $ruleClass);
		}

		return $validator;
	}
public function create ( array $ input , array $ rules ) : Validator { $ validator = new Validator ( $ input , $ rules , $ this -> i18n , $ this -> container ) ; foreach ( $ this -> rules as $ rule => $ ruleClass ) { $ validator -> extend ( $ rule , $ ruleClass ) ; } return $ validator ; }
Creates and returns a validator instance.

@param  array                     $input Array to validate
@param  array                     $rules Array of validation rules
@return \mako\validator\Validator
Creates and returns a validator instance .