You are here

public function FileBag::add in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/FileBag.php \Symfony\Component\HttpFoundation\FileBag::add()

Adds parameters.

Parameters

array $parameters An array of parameters:

Overrides ParameterBag::add

1 call to FileBag::add()
FileBag::replace in vendor/symfony/http-foundation/FileBag.php
Replaces the current parameters by a new set.

File

vendor/symfony/http-foundation/FileBag.php, line 60

Class

FileBag
FileBag is a container for uploaded files.

Namespace

Symfony\Component\HttpFoundation

Code

public function add(array $files = array()) {
  foreach ($files as $key => $file) {
    $this
      ->set($key, $file);
  }
}