<?php defined('TYPO3_MODE') || die(); /* * .htaccess: SetEnv TYPO3_CONTEXT Development * bash: export TYPO3_CONTEXT=Development * * @see https://usetypo3.com/application-context.html */ $currentContext = \TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext(); $redisConfiguration = __DIR__ . DIRECTORY_SEPARATOR . 'RedisConfiguration.php'; if ($currentContext->isDevelopment() || empty(getenv('TYPO3_CONTEXT')) || stristr($_SERVER['HTTP_HOST'], '.local') ) { $developmentConfiguration = __DIR__ . DIRECTORY_SEPARATOR . 'DevelopmentConfiguration.php'; if (file_exists($developmentConfiguration)) { require_once $developmentConfiguration; } unset($developmentConfiguration); $redisConfiguration = __DIR__ . DIRECTORY_SEPARATOR . 'RedisDevelopmentConfiguration.php'; } if (class_exists('redis') && file_exists($redisConfiguration)) { require_once $redisConfiguration; } unset($redisConfiguration); unset($currentCont);