10000 [HttpFoundation] don't override StreamedResponse::setNotModified() · symfony/http-foundation@4a45c6a · GitHub
[go: up one dir, main page]

Skip to content

Commit 4a45c6a

Browse files
[HttpFoundation] don't override StreamedResponse::setNotModified()
1 parent 2908f2a commit 4a45c6a

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

StreamedResponse.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ public function setContent($content)
123123
if (null !== $content) {
124124
throw new \LogicException('The content cannot be set on a StreamedResponse instance.');
125125
}
126+
127+
$this->streamed = true;
126128
}
127129

128130
/**
@@ -134,16 +136,4 @@ public function getContent()
134136
{
135137
return false;
136138
}
137-
138-
/**
139-
* {@inheritdoc}
140-
*
141-
* @return $this
142-
*/
143-
public function setNotModified()
144-
{
145-
$this->setCallback(function () {});
146-
147-
return parent::setNotModified();
148-
}
149139
}

0 commit comments

Comments
 (0)
0