projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pull merge.
[yaffs-website]
/
vendor
/
symfony
/
http-foundation
/
StreamedResponse.php
diff --git
a/vendor/symfony/http-foundation/StreamedResponse.php
b/vendor/symfony/http-foundation/StreamedResponse.php
index 92868d33e48144666e7a49e4ce00377079aa82f5..3a55d5d2b9789a4096ac33ce71c110b702d0053f 100644
(file)
--- a/
vendor/symfony/http-foundation/StreamedResponse.php
+++ b/
vendor/symfony/http-foundation/StreamedResponse.php
@@
-17,7
+17,7
@@
namespace Symfony\Component\HttpFoundation;
* A StreamedResponse uses a callback for its content.
*
* The callback should use the standard PHP functions like echo
* A StreamedResponse uses a callback for its content.
*
* The callback should use the standard PHP functions like echo
- * to stream the response back to the client. The flush()
method
+ * to stream the response back to the client. The flush()
function
* can also be used if needed.
*
* @see flush()
* can also be used if needed.
*
* @see flush()
@@
-111,7
+111,7
@@
class StreamedResponse extends Response
throw new \LogicException('The Response callback must not be null.');
}
throw new \LogicException('The Response callback must not be null.');
}
- call_user_func($this->callback);
+
\
call_user_func($this->callback);
return $this;
}
return $this;
}
@@
-129,6
+129,8
@@
class StreamedResponse extends Response
throw new \LogicException('The content cannot be set on a StreamedResponse instance.');
}
throw new \LogicException('The content cannot be set on a StreamedResponse instance.');
}
+ $this->streamed = true;
+
return $this;
}
return $this;
}