protected function initialize()
{
if (static::$blnHasLcf === null) {
static::preload();
}
$strCacheDir = \System::getContainer()->getParameter('kernel.cache_dir');
if (file_exists($strCacheDir . '/contao/config/config.php')) {
include $strCacheDir . '/contao/config/config.php';
} else {
try {
$files = \System::getContainer()->get('contao.resource_locator')->locate('config/config.php', null, false);
} catch (\InvalidArgumentException $e) {
$files = array();
}
foreach ($files as $file) {
include $file;
}
}
// Include the local configuration file again
if (static::$blnHasLcf) {
include TL_ROOT . '/system/config/localconfig.php';
}
static::loadParameters();
}