projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Security update for Core, with self-updated composer
[yaffs-website]
/
web
/
core
/
modules
/
system
/
tests
/
modules
/
system_test
/
src
/
Controller
/
SystemTestController.php
diff --git
a/web/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php
b/web/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php
index 5e49c2403b677defc9e641483d6f39c2556ee4ed..37eb87585d2fc22f224004dffc131b5cc381084f 100644
(file)
--- a/
web/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php
+++ b/
web/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php
@@
-375,4
+375,11
@@
class SystemTestController extends ControllerBase {
return $response;
}
+ /**
+ * Returns a cacheable response with a custom cache control.
+ */
+ public function getCacheableResponseWithCustomCacheControl() {
+ return new CacheableResponse('Foo', 200, ['Cache-Control' => 'bar']);
+ }
+
}