Symfony\Component\HttpFoundation\Response::sendContent PHP Метод

sendContent() публичный Метод

Sends content for the current web response.
public sendContent ( ) : Response
Результат Response
    public function sendContent()
    {
        echo $this->content;

        return $this;
    }

Usage Example

 /**
  * Sends the file.
  */
 public function sendContent()
 {
     if (!$this->isSuccessful()) {
         parent::sendContent();
         return;
     }
     $outStream = fopen('php://output', 'wb');
     $fileStream = $this->file->readStream();
     stream_copy_to_stream($fileStream, $outStream);
     fclose($outStream);
     fclose($fileStream);
 }
All Usage Examples Of Symfony\Component\HttpFoundation\Response::sendContent