You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!$this->container->has('web_link.http_header_serializer')) {
415
+
thrownew \LogicException('You cannot use the "sendEarlyHints" method if the WebLink component is not available. Try running "composer require symfony/web-link".');
416
+
}
417
+
418
+
$response ??= newResponse();
419
+
420
+
$populatedLinks = [];
421
+
foreach ($linksas$link) {
422
+
if ($linkinstanceof EvolvableLinkInterface && !$link->getRels()) {
Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ CHANGELOG
7
7
* Add `ParameterBag::getEnum()`
8
8
* Create migration for session table when pdo handler is used
9
9
* Add support for Relay PHP extension for Redis
10
+
* The `Response::sendHeaders()` method now takes an optional HTTP status code as parameter, allowing to send informational responses such as Early Hints responses (103 status code)
0 commit comments