You are here

public static function StreamedResponse::create in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/StreamedResponse.php \Symfony\Component\HttpFoundation\StreamedResponse::create()

Factory method for chainability.

Parameters

callable|null $callback A valid PHP callback or null to set it later:

int $status The response status code:

array $headers An array of response headers:

Return value

StreamedResponse

Overrides Response::create

1 call to StreamedResponse::create()
StreamedResponseTest::testCreate in vendor/symfony/http-foundation/Tests/StreamedResponseTest.php

File

vendor/symfony/http-foundation/StreamedResponse.php, line 58

Class

StreamedResponse
StreamedResponse represents a streamed HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public static function create($callback = null, $status = 200, $headers = array()) {
  return new static($callback, $status, $headers);
}