src/Leevel/Validate/Validate.php
public function make(array $datas = [], array $rules = [], array $names = [], array $messages = []): IValidator
    {
        $validator = new Validator($datas, $rules, $names, $messages);

        $validator->setContainer($this->container);

        return $validator;
    }
public function make(array $datas = [], array $rules = [], array $names = [], array $messages = []): IValidator
    {
        $validator = new Validator($datas, $rules, $names, $messages);

        $validator->setContainer($this->container);

        return $validator;
    }
创建一个验证器.

@param array $datas
@param array $rules
@param array $names
@param array $messages

@return \Leevel\Validate\IValidator