PluginProbe ʕ •ᴥ•ʔ
Matomo Analytics – Powerful, Privacy-First Insights for WordPress / 5.8.2
Matomo Analytics – Powerful, Privacy-First Insights for WordPress v5.8.2
5.11.1 5.11.0 5.10.2 5.10.1 trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.3.0 1.3.1 1.3.2 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.1.0 4.1.1 4.1.2 4.1.3 4.10.0 4.11.0 4.12.0 4.13.0 4.13.2 4.13.3 4.13.4 4.13.5 4.14.0 4.14.1 4.14.2 4.15.0 4.15.1 4.15.2 4.15.3 4.2.0 4.3.0 4.3.1 4.4.1 4.4.2 4.5.0 4.6.0 5.0.1 5.0.2 5.0.3 5.0.4 5.0.5 5.0.6 5.0.7 5.0.8 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.10.0 5.2.0 5.2.1 5.2.2 5.3.0 5.3.1 5.3.2 5.3.3 5.6.0 5.6.1 5.7.0 5.7.1 5.8.0 5.8.1 5.8.2
matomo / app / vendor / prefixed / symfony / http-kernel / HttpCache / SurrogateInterface.php
matomo / app / vendor / prefixed / symfony / http-kernel / HttpCache Last commit date
AbstractSurrogate.php 1 year ago Esi.php 1 year ago HttpCache.php 1 year ago ResponseCacheStrategy.php 1 year ago ResponseCacheStrategyInterface.php 2 years ago Ssi.php 1 year ago Store.php 1 year ago StoreInterface.php 2 years ago SubRequestHandler.php 2 years ago SurrogateInterface.php 1 year ago
SurrogateInterface.php
78 lines
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11 namespace Matomo\Dependencies\Symfony\Component\HttpKernel\HttpCache;
12
13 use Matomo\Dependencies\Symfony\Component\HttpFoundation\Request;
14 use Matomo\Dependencies\Symfony\Component\HttpFoundation\Response;
15 interface SurrogateInterface
16 {
17 /**
18 * Returns surrogate name.
19 *
20 * @return string
21 */
22 public function getName();
23 /**
24 * Returns a new cache strategy instance.
25 *
26 * @return ResponseCacheStrategyInterface
27 */
28 public function createCacheStrategy();
29 /**
30 * Checks that at least one surrogate has Surrogate capability.
31 *
32 * @return bool
33 */
34 public function hasSurrogateCapability(Request $request);
35 /**
36 * Adds Surrogate-capability to the given Request.
37 */
38 public function addSurrogateCapability(Request $request);
39 /**
40 * Adds HTTP headers to specify that the Response needs to be parsed for Surrogate.
41 *
42 * This method only adds an Surrogate HTTP header if the Response has some Surrogate tags.
43 */
44 public function addSurrogateControl(Response $response);
45 /**
46 * Checks that the Response needs to be parsed for Surrogate tags.
47 *
48 * @return bool
49 */
50 public function needsParsing(Response $response);
51 /**
52 * Renders a Surrogate tag.
53 *
54 * @param string|null $alt An alternate URI
55 * @param string $comment A comment to add as an esi:include tag
56 *
57 * @return string
58 */
59 public function renderIncludeTag(string $uri, ?string $alt = null, bool $ignoreErrors = \true, string $comment = '');
60 /**
61 * Replaces a Response Surrogate tags with the included resource content.
62 *
63 * @return Response
64 */
65 public function process(Request $request, Response $response);
66 /**
67 * Handles a Surrogate from the cache.
68 *
69 * @param string $alt An alternative URI
70 *
71 * @return string
72 *
73 * @throws \RuntimeException
74 * @throws \Exception
75 */
76 public function handle(HttpCache $cache, string $uri, string $alt, bool $ignoreErrors);
77 }
78