Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StreamedResponse.php

function StreamedResponse::setCallback

Sets the PHP callback associated with this Response.

Return value

$this

1 call to StreamedResponse::setCallback()
StreamedResponse::__construct in vendor/symfony/http-foundation/StreamedResponse.php

File

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

Class

StreamedResponse
StreamedResponse represents a streamed HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function setCallback(callable $callback) : static {
    $this->callback = $callback(...);
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal