‪TYPO3CMS  ‪main
ModifyTypoScriptConfigEvent.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 
43 {
44  public function ‪__construct(
45  private readonly ServerRequestInterface $request,
46  private readonly ‪RootNode $setupTree,
47  private ‪RootNode $configTree,
48  ) {}
49 
50  public function ‪getRequest(): ServerRequestInterface
51  {
52  return $this->request;
53  }
54 
55  public function ‪getSetupTree(): ‪RootNode
56  {
57  return $this->setupTree;
58  }
59 
60  public function ‪getConfigTree(): ‪RootNode
61  {
62  return $this->configTree;
63  }
64 
65  public function ‪setConfigTree(‪RootNode $configTree): void
66  {
67  $this->configTree = $configTree;
68  }
69 }
‪TYPO3\CMS\Frontend\Event
Definition: AfterCacheableContentIsGeneratedEvent.php:18
‪TYPO3\CMS\Frontend\Event\ModifyTypoScriptConfigEvent\getSetupTree
‪getSetupTree()
Definition: ModifyTypoScriptConfigEvent.php:55
‪TYPO3\CMS\Frontend\Event\ModifyTypoScriptConfigEvent\setConfigTree
‪setConfigTree(RootNode $configTree)
Definition: ModifyTypoScriptConfigEvent.php:65
‪TYPO3\CMS\Frontend\Event\ModifyTypoScriptConfigEvent\getConfigTree
‪getConfigTree()
Definition: ModifyTypoScriptConfigEvent.php:60
‪TYPO3\CMS\Frontend\Event\ModifyTypoScriptConfigEvent
Definition: ModifyTypoScriptConfigEvent.php:43
‪TYPO3\CMS\Frontend\Event\ModifyTypoScriptConfigEvent\__construct
‪__construct(private readonly ServerRequestInterface $request, private readonly RootNode $setupTree, private RootNode $configTree,)
Definition: ModifyTypoScriptConfigEvent.php:44
‪TYPO3\CMS\Core\TypoScript\AST\Node\RootNode
Definition: RootNode.php:26
‪TYPO3\CMS\Frontend\Event\ModifyTypoScriptConfigEvent\getRequest
‪getRequest()
Definition: ModifyTypoScriptConfigEvent.php:50