‪TYPO3CMS  10.4
SiteConditionProvider.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 
23 
25 {
26  public function ‪__construct()
27  {
28  $typo3 = new \stdClass();
29  $typo3Version = GeneralUtility::makeInstance(Typo3Version::class);
30  $typo3->version = $typo3Version->getVersion();
31  $typo3->branch = $typo3Version->getBranch();
32  $typo3->devIpMask = trim(‪$GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask']);
33  $this->expressionLanguageVariables = [
34  'applicationContext' => (string)‪Environment::getContext(),
35  'typo3' => $typo3,
36  ];
37  }
38 }
‪TYPO3\CMS\Core\Information\Typo3Version
Definition: Typo3Version.php:21
‪TYPO3\CMS\Core\ExpressionLanguage\SiteConditionProvider\__construct
‪__construct()
Definition: SiteConditionProvider.php:26
‪TYPO3\CMS\Core\Core\Environment\getContext
‪static ApplicationContext getContext()
Definition: Environment.php:133
‪TYPO3\CMS\Core\ExpressionLanguage\SiteConditionProvider
Definition: SiteConditionProvider.php:25
‪TYPO3\CMS\Core\ExpressionLanguage
Definition: AbstractProvider.php:18
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Core\Core\Environment
Definition: Environment.php:40
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Core\ExpressionLanguage\AbstractProvider
Definition: AbstractProvider.php:24