1 | <?php |
||
28 | class CacheCollector extends DataCollector |
||
29 | { |
||
30 | /** |
||
31 | * @var \Phpfastcache\Bundle\Service\Phpfastcache |
||
32 | */ |
||
33 | private $phpfastcache; |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | private $twig_cache_blocks = []; |
||
39 | |||
40 | /** |
||
41 | * CacheCollector constructor. |
||
42 | * |
||
43 | * @param \Phpfastcache\Bundle\Service\Phpfastcache $phpfastcache |
||
44 | */ |
||
45 | public function __construct(Phpfastcache $phpfastcache) |
||
49 | |||
50 | /** |
||
51 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
52 | * @param \Symfony\Component\HttpFoundation\Response $response |
||
53 | * @param \Exception|null $exception |
||
54 | */ |
||
55 | public function collect(Request $request, Response $response, \Exception $exception = null) |
||
100 | |||
101 | /** |
||
102 | * @return array |
||
103 | */ |
||
104 | public function getStats(): array |
||
108 | |||
109 | /** |
||
110 | * @return array |
||
111 | */ |
||
112 | public function getInstances(): array |
||
116 | |||
117 | /** |
||
118 | * @return array |
||
119 | */ |
||
120 | public function getDriverUsed(): array |
||
124 | |||
125 | /** |
||
126 | * @return array |
||
127 | */ |
||
128 | public function getHits(): array |
||
132 | |||
133 | /** |
||
134 | * @return int |
||
135 | */ |
||
136 | public function getSize(): int |
||
140 | |||
141 | /** |
||
142 | * @return array |
||
143 | */ |
||
144 | public function getCoreConfig(): array |
||
148 | |||
149 | /** |
||
150 | * @return array |
||
151 | */ |
||
152 | public function getProjectConfig(): array |
||
156 | |||
157 | /** |
||
158 | * @return string |
||
159 | */ |
||
160 | public function getApiVersion(): string |
||
164 | |||
165 | /** |
||
166 | * @return string |
||
167 | */ |
||
168 | public function getPfcVersion(): string |
||
172 | |||
173 | /** |
||
174 | * @return string |
||
175 | */ |
||
176 | public function getBundleVersion(): string |
||
180 | |||
181 | /** |
||
182 | * @return string |
||
183 | */ |
||
184 | public function getApiChangelog(): string |
||
188 | |||
189 | /** |
||
190 | * @param string $blockName |
||
191 | * @param array $cacheBlock |
||
192 | * @return $this |
||
193 | */ |
||
194 | public function setTwigCacheBlock($blockName, array $cacheBlock): self |
||
205 | |||
206 | /** |
||
207 | * @return array |
||
208 | */ |
||
209 | public function getTwigCacheBlocks(): array |
||
213 | |||
214 | /** |
||
215 | * @inheritdoc |
||
216 | */ |
||
217 | public function getName(): string |
||
221 | |||
222 | /** |
||
223 | * @inheritdoc |
||
224 | */ |
||
225 | public function reset() |
||
230 | } |