‪TYPO3CMS  ‪main
AfterCachedPageIsPersistedEvent.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
20 use Psr\Http\Message\ServerRequestInterface;
22 
32 {
33  public function ‪__construct(
34  private ServerRequestInterface $request,
35  private ‪TypoScriptFrontendController $controller,
36  private string $cacheIdentifier,
37  private array $cacheData,
38  private int $cacheLifetime
39  ) {}
40 
41  public function ‪getRequest(): ServerRequestInterface
42  {
43  return $this->request;
44  }
45 
47  {
48  return $this->controller;
49  }
50 
51  public function ‪getCacheIdentifier(): string
52  {
53  return $this->cacheIdentifier;
54  }
55 
56  public function ‪getCacheData(): array
57  {
58  return $this->cacheData;
59  }
60 
64  public function ‪getCacheLifetime(): int
65  {
66  return $this->cacheLifetime;
67  }
68 }
‪TYPO3\CMS\Frontend\Event
Definition: AfterCacheableContentIsGeneratedEvent.php:18
‪TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent\getCacheIdentifier
‪getCacheIdentifier()
Definition: AfterCachedPageIsPersistedEvent.php:51
‪TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent\getController
‪getController()
Definition: AfterCachedPageIsPersistedEvent.php:46
‪TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent\getCacheData
‪getCacheData()
Definition: AfterCachedPageIsPersistedEvent.php:56
‪TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
Definition: TypoScriptFrontendController.php:58
‪TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent\getRequest
‪getRequest()
Definition: AfterCachedPageIsPersistedEvent.php:41
‪TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent\__construct
‪__construct(private ServerRequestInterface $request, private TypoScriptFrontendController $controller, private string $cacheIdentifier, private array $cacheData, private int $cacheLifetime)
Definition: AfterCachedPageIsPersistedEvent.php:33
‪TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent\getCacheLifetime
‪getCacheLifetime()
Definition: AfterCachedPageIsPersistedEvent.php:64
‪TYPO3\CMS\Frontend\Event\AfterCachedPageIsPersistedEvent
Definition: AfterCachedPageIsPersistedEvent.php:32