public static preload ( ) |
public static function preload()
{
// Load the default files
include __DIR__ . '/../../config/default.php';
include __DIR__ . '/../../config/agents.php';
include __DIR__ . '/../../config/mimetypes.php';
// Include the local configuration file
if (($blnHasLcf = file_exists(TL_ROOT . '/system/config/localconfig.php')) === true) {
include TL_ROOT . '/system/config/localconfig.php';
}
static::loadParameters();
static::$blnHasLcf = $blnHasLcf;
}
/** * Boots the helper system. */ private function bootHelperSystem() { $contaoDir = $this->getRootDir() . '/../vendor/contao/core-bundle'; require_once $contaoDir . '/src/Resources/contao/config/constants.php'; require_once $contaoDir . '/src/Resources/contao/helper/functions.php'; // Register the class loader $libraryLoader = new LibraryLoader($this->getRootDir()); $libraryLoader->register(); Config::preload(); // Create the container $this->container = ContainerFactory::create($this); System::setContainer($this->container); ClassLoader::scanAndRegister(); }