Пример #1
0
 /**
  * @param ResponseBag $bag
  * @param string            $callback
  * @param string            $filename
  */
 public static function makeStreamedResponse(ResponseBag $bag, $callback, $filename)
 {
     $bag->setType(ResponseBag::TYPE_STREAMED);
     $bag->setCallback($callback);
     $bag->set(StreamedOutputBuilder::FILENAME, $filename);
 }