Пример #1
0
 /**
  * Constructor.
  *
  * @param FileInterface $file    A FileInterface instance
  * @param Request       $request A Request instance
  * @param string        $name    The uploader name
  */
 public function __construct(FileInterface $file, Request $request, $name)
 {
     $this->file = $file;
     parent::__construct($request, $name);
 }
Пример #2
0
 /**
  * Constructor.
  *
  * @param File        $file     A File instance
  * @param Request     $request  A Request instance
  * @param ResponseBag $response The ResponseBag instance
  * @param string      $name     The uploader name
  */
 public function __construct(File $file, Request $request, ResponseBag $response, $name)
 {
     $this->file = $file;
     $this->response = $response;
     parent::__construct($request, $name);
 }