‪TYPO3CMS  ‪main
AfterPageWithRootLineIsResolvedEvent.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\ResponseInterface;
21 use Psr\Http\Message\ServerRequestInterface;
23 
31 {
32  private ?ResponseInterface ‪$response = null;
33 
34  public function ‪__construct(
35  private readonly ServerRequestInterface $request,
36  private ‪PageInformation $pageInformation,
37  ) {}
38 
39  public function ‪getRequest(): ServerRequestInterface
40  {
41  return $this->request;
42  }
43 
44  public function ‪setResponse(ResponseInterface ‪$response): void
45  {
46  $this->response = ‪$response;
47  }
48 
49  public function ‪getResponse(): ?ResponseInterface
50  {
51  return ‪$this->response;
52  }
53 
55  {
56  return $this->pageInformation;
57  }
58 
59  public function ‪setPageInformation(‪PageInformation $pageInformation): void
60  {
61  $this->pageInformation = $pageInformation;
62  }
63 }
‪TYPO3\CMS\Frontend\Event
Definition: AfterCacheableContentIsGeneratedEvent.php:18
‪TYPO3\CMS\Frontend\Event\AfterPageWithRootLineIsResolvedEvent\__construct
‪__construct(private readonly ServerRequestInterface $request, private PageInformation $pageInformation,)
Definition: AfterPageWithRootLineIsResolvedEvent.php:34
‪TYPO3\CMS\Frontend\Event\AfterPageWithRootLineIsResolvedEvent\getRequest
‪getRequest()
Definition: AfterPageWithRootLineIsResolvedEvent.php:39
‪TYPO3\CMS\Frontend\Event\AfterPageWithRootLineIsResolvedEvent\setPageInformation
‪setPageInformation(PageInformation $pageInformation)
Definition: AfterPageWithRootLineIsResolvedEvent.php:59
‪TYPO3\CMS\Frontend\Event\AfterPageWithRootLineIsResolvedEvent\$response
‪ResponseInterface $response
Definition: AfterPageWithRootLineIsResolvedEvent.php:32
‪TYPO3\CMS\Frontend\Event\AfterPageWithRootLineIsResolvedEvent
Definition: AfterPageWithRootLineIsResolvedEvent.php:31
‪TYPO3\CMS\Frontend\Event\AfterPageWithRootLineIsResolvedEvent\getResponse
‪getResponse()
Definition: AfterPageWithRootLineIsResolvedEvent.php:49
‪TYPO3\CMS\Frontend\Event\AfterPageWithRootLineIsResolvedEvent\getPageInformation
‪getPageInformation()
Definition: AfterPageWithRootLineIsResolvedEvent.php:54
‪TYPO3\CMS\Frontend\Event\AfterPageWithRootLineIsResolvedEvent\setResponse
‪setResponse(ResponseInterface $response)
Definition: AfterPageWithRootLineIsResolvedEvent.php:44
‪TYPO3\CMS\Frontend\Page\PageInformation
Definition: PageInformation.php:28