Added missing autoloader
authorAlexander Ebert <ebert@woltlab.com>
Tue, 24 Nov 2015 00:16:19 +0000 (01:16 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 24 Nov 2015 00:16:19 +0000 (01:16 +0100)
wcfsetup/install/files/lib/system/WCFSetup.class.php

index fa1c6fb26e6c05c78b827bde0218fdac3441c6b3..b53cef6a3ae23e7d85432e794fc35fafeed3b43f 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system;
+use DI\ContainerBuilder;
 use wcf\data\language\LanguageEditor;
 use wcf\data\language\SetupLanguage;
 use wcf\data\package\installation\queue\PackageInstallationQueueEditor;
@@ -103,6 +104,11 @@ class WCFSetup extends WCF {
         */
        public function __construct() {
                @set_time_limit(0);
+               
+               require('api/autoload.php');
+               $builder = new ContainerBuilder();
+               self::$diContainer = $builder->build();
+               
                $this->getDeveloperMode();
                $this->getLanguageSelection();
                $this->getWCFDir();