public function __construct(array $options = []) { parent::__construct($options); $this->validators = array_merge([new EmailValidator(!$this->canBeEmpty())], $this->validators); }
public function __construct(array $options = []) { parent::__construct($options); $this->validators = array_merge([new FileValidator($this->null, $this->types, $this->maxSize)], $this->validators); }