Beispiel #1
0
 /**
  * CookieBag constructor.
  *
  * @param array $bag
  */
 public function __construct(array $bag = [])
 {
     foreach ($bag as $key => $value) {
         $bag[$key] = new Cookie($key, $value);
     }
     parent::__construct($bag);
 }
Beispiel #2
0
 /**
  * @param array $files
  */
 public function __construct(array $files)
 {
     parent::__construct($this->initUploadedFiles($files));
 }