function FileBag::set
Overrides ParameterBag::set
1 call to FileBag::set()
- FileBag::add in vendor/
symfony/ http-foundation/ FileBag.php - Adds parameters.
File
-
vendor/
symfony/ http-foundation/ FileBag.php, line 40
Class
- FileBag
- FileBag is a container for uploaded files.
Namespace
Symfony\Component\HttpFoundationCode
public function set(string $key, mixed $value) : void {
if (!\is_array($value) && !$value instanceof UploadedFile) {
throw new \InvalidArgumentException('An uploaded file must be an array or an instance of UploadedFile.');
}
parent::set($key, $this->convertFileInformation($value));
}