class AvatarValidator extends AbstractValidator

Properties

protected array $configuration from AbstractValidator
protected array $rules from AbstractValidator
protected Factory $validator from AbstractValidator
protected TranslatorInterface $translator from AbstractValidator

Methods

addConfiguration($callable)

No description

__construct(Factory $validator, TranslatorInterface $translator)

No description

assertValid(array $attributes)

<p>Throw an exception if a model is not valid.</p>

array
getRules()

No description

array
getMessages()

No description

Validator
makeValidator(array $attributes)

<p>Make a new validator instance for this model.</p>

assertFileRequired(UploadedFileInterface $file)

No description

assertFileMimes(UploadedFileInterface $file)

No description

assertFileSize(UploadedFileInterface $file)

No description

raise($error, array $parameters = [])

No description

getMaxSize()

No description

getAllowedTypes()

No description

Details

addConfiguration($callable)

Parameters

$callable

__construct(Factory $validator, TranslatorInterface $translator)

Parameters

Factory $validator
TranslatorInterface $translator

assertValid(array $attributes)

<p>Throw an exception if a model is not valid.</p>

Parameters

array $attributes

protected array getRules()

Return Value

array

protected array getMessages()

Return Value

array

protected Validator makeValidator(array $attributes)

<p>Make a new validator instance for this model.</p>

Parameters

array $attributes

Return Value

Validator

protected assertFileRequired(UploadedFileInterface $file)

Parameters

UploadedFileInterface $file

protected assertFileMimes(UploadedFileInterface $file)

Parameters

UploadedFileInterface $file

protected assertFileSize(UploadedFileInterface $file)

Parameters

UploadedFileInterface $file

protected raise($error, array $parameters = [])

Parameters

$error
array $parameters

protected getMaxSize()

protected getAllowedTypes()