comparison vendor/symfony/http-kernel/HttpCache/SurrogateInterface.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
31 public function createCacheStrategy(); 31 public function createCacheStrategy();
32 32
33 /** 33 /**
34 * Checks that at least one surrogate has Surrogate capability. 34 * Checks that at least one surrogate has Surrogate capability.
35 * 35 *
36 * @param Request $request A Request instance
37 *
38 * @return bool true if one surrogate has Surrogate capability, false otherwise 36 * @return bool true if one surrogate has Surrogate capability, false otherwise
39 */ 37 */
40 public function hasSurrogateCapability(Request $request); 38 public function hasSurrogateCapability(Request $request);
41 39
42 /** 40 /**
43 * Adds Surrogate-capability to the given Request. 41 * Adds Surrogate-capability to the given Request.
44 *
45 * @param Request $request A Request instance
46 */ 42 */
47 public function addSurrogateCapability(Request $request); 43 public function addSurrogateCapability(Request $request);
48 44
49 /** 45 /**
50 * Adds HTTP headers to specify that the Response needs to be parsed for Surrogate. 46 * Adds HTTP headers to specify that the Response needs to be parsed for Surrogate.
51 * 47 *
52 * This method only adds an Surrogate HTTP header if the Response has some Surrogate tags. 48 * This method only adds an Surrogate HTTP header if the Response has some Surrogate tags.
53 *
54 * @param Response $response A Response instance
55 */ 49 */
56 public function addSurrogateControl(Response $response); 50 public function addSurrogateControl(Response $response);
57 51
58 /** 52 /**
59 * Checks that the Response needs to be parsed for Surrogate tags. 53 * Checks that the Response needs to be parsed for Surrogate tags.
60 *
61 * @param Response $response A Response instance
62 * 54 *
63 * @return bool true if the Response needs to be parsed, false otherwise 55 * @return bool true if the Response needs to be parsed, false otherwise
64 */ 56 */
65 public function needsParsing(Response $response); 57 public function needsParsing(Response $response);
66 58
77 public function renderIncludeTag($uri, $alt = null, $ignoreErrors = true, $comment = ''); 69 public function renderIncludeTag($uri, $alt = null, $ignoreErrors = true, $comment = '');
78 70
79 /** 71 /**
80 * Replaces a Response Surrogate tags with the included resource content. 72 * Replaces a Response Surrogate tags with the included resource content.
81 * 73 *
82 * @param Request $request A Request instance
83 * @param Response $response A Response instance
84 *
85 * @return Response 74 * @return Response
86 */ 75 */
87 public function process(Request $request, Response $response); 76 public function process(Request $request, Response $response);
88 77
89 /** 78 /**