diff --git a/src/Illuminate/Contracts/Routing/ResponseFactory.php b/src/Illuminate/Contracts/Routing/ResponseFactory.php index 95dcf96bcf73..8df598e8e771 100644 --- a/src/Illuminate/Contracts/Routing/ResponseFactory.php +++ b/src/Illuminate/Contracts/Routing/ResponseFactory.php @@ -57,6 +57,16 @@ public function json($data = [], $status = 200, array $headers = [], $options = */ public function jsonp($callback, $data = [], $status = 200, array $headers = [], $options = 0); + /** + * Create a new event stream response. + * + * @param \Closure $callback + * @param array $headers + * @param \Illuminate\Http\StreamedEvent|string|null $endStreamWith + * @return \Symfony\Component\HttpFoundation\StreamedResponse + */ + public function eventStream($callback, array $headers = [], $endStreamWith = ''); + /** * Create a new streamed response instance. *