Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9f5d8f7

Browse files
[HttpFoundation] don' override StreamedResponse::setNotModified()
1 parente40bb0f commit9f5d8f7

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

‎src/Symfony/Component/HttpFoundation/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
thrownew \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
returnfalse;
136138
}
137-
138-
/**
139-
* {@inheritdoc}
140-
*
141-
* @return $this
142-
*/
143-
publicfunctionsetNotModified()
144-
{
145-
$this->setCallback(function () {});
146-
147-
returnparent::setNotModified();
148-
}
149139
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp