‪TYPO3CMS  ‪main
BeforePageIsResolvedEvent.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 
31 {
32  public function ‪__construct(
33  private readonly ServerRequestInterface $request,
34  private ‪PageInformation $pageInformation,
35  ) {}
36 
37  public function ‪getRequest(): ServerRequestInterface
38  {
39  return $this->request;
40  }
41 
43  {
44  return $this->pageInformation;
45  }
46 
47  public function ‪setPageInformation(‪PageInformation $pageInformation): void
48  {
49  $this->pageInformation = $pageInformation;
50  }
51 }
‪TYPO3\CMS\Frontend\Event
Definition: AfterCacheableContentIsGeneratedEvent.php:18
‪TYPO3\CMS\Frontend\Event\BeforePageIsResolvedEvent
Definition: BeforePageIsResolvedEvent.php:31
‪TYPO3\CMS\Frontend\Event\BeforePageIsResolvedEvent\setPageInformation
‪setPageInformation(PageInformation $pageInformation)
Definition: BeforePageIsResolvedEvent.php:47
‪TYPO3\CMS\Frontend\Event\BeforePageIsResolvedEvent\getRequest
‪getRequest()
Definition: BeforePageIsResolvedEvent.php:37
‪TYPO3\CMS\Frontend\Event\BeforePageIsResolvedEvent\__construct
‪__construct(private readonly ServerRequestInterface $request, private PageInformation $pageInformation,)
Definition: BeforePageIsResolvedEvent.php:32
‪TYPO3\CMS\Frontend\Page\PageInformation
Definition: PageInformation.php:28
‪TYPO3\CMS\Frontend\Event\BeforePageIsResolvedEvent\getPageInformation
‪getPageInformation()
Definition: BeforePageIsResolvedEvent.php:42