You are here

public function FileBag::replace in Zircon Profile 8.0

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

Replaces the current parameters by a new set.

Parameters

array $parameters An array of parameters:

Overrides ParameterBag::replace

1 call to FileBag::replace()
FileBag::__construct in vendor/symfony/http-foundation/FileBag.php
Constructor.

File

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

Class

FileBag
FileBag is a container for uploaded files.

Namespace

Symfony\Component\HttpFoundation

Code

public function replace(array $files = array()) {
  $this->parameters = array();
  $this
    ->add($files);
}