forked from rickfeuerabend/TYPO3-context-loader
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathContextInit.php
21 lines (19 loc) · 806 Bytes
/
ContextInit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
defined('TYPO3_MODE') || exit('Access denied.');
call_user_func(function () {
$confLoader = \WebDevOps\ContextLoader\ContextLoader::getInstance();
if (!$confLoader->isConfigurationLoaded()) {
$confLoader
->init()
// Add configuration from EXT:context_loader (default context configuration)
->addContextConfigurationDirectory(PATH_site . '/typo3conf/ext/context_loader/Configuration')
// Add local context configuration
->addContextConfigurationDirectory(PATH_site . '/typo3conf/AdditionalConfiguration')
// Add specific instance configuration
->addConfigurationFile(PATH_site . '/typo3conf/AdditionalConfiguration/Local.php')
// Load configuration files
->loadConfiguration()
// Add context name to sitename
->appendContextNameToSitenameInDevelopment();
}
});