[HttpFoundation] don't override StreamedResponse::setNotModified()
This commit is contained in:
parent
e40bb0fa5f
commit
9ef7f7038d
@ -123,6 +123,8 @@ class StreamedResponse extends Response
|
||||
if (null !== $content) {
|
||||
throw new \LogicException('The content cannot be set on a StreamedResponse instance.');
|
||||
}
|
||||
|
||||
$this->streamed = true;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -134,16 +136,4 @@ class StreamedResponse extends Response
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setNotModified()
|
||||
{
|
||||
$this->setCallback(function () {});
|
||||
|
||||
return parent::setNotModified();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user