예제 #1
0
파일: CookieBag.php 프로젝트: JanHuang/http
 /**
  * CookieBag constructor.
  *
  * @param array $bag
  */
 public function __construct(array $bag = [])
 {
     foreach ($bag as $key => $value) {
         $bag[$key] = new Cookie($key, $value);
     }
     parent::__construct($bag);
 }
예제 #2
0
파일: FileBag.php 프로젝트: JanHuang/http
 /**
  * @param array $files
  */
 public function __construct(array $files)
 {
     parent::__construct($this->initUploadedFiles($files));
 }