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