From: Alexander Ebert Date: Wed, 25 Nov 2015 15:09:40 +0000 (+0100) Subject: Removed some DI references X-Git-Tag: 3.0.0_Beta_1~2030^2~234^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea8398f2da018445d760a140380dbb9ec14effa6;p=GitHub%2FWoltLab%2FWCF.git Removed some DI references --- diff --git a/wcfsetup/install/files/lib/system/WCFACP.class.php b/wcfsetup/install/files/lib/system/WCFACP.class.php index 109adac4e9..9513e839b6 100644 --- a/wcfsetup/install/files/lib/system/WCFACP.class.php +++ b/wcfsetup/install/files/lib/system/WCFACP.class.php @@ -116,10 +116,10 @@ class WCFACP extends WCF { * @see \wcf\system\WCF::initSession() */ protected function initSession() { - $factory = self::$diContainer->get(ACPSessionFactory::class); + $factory = new ACPSessionFactory(); $factory->load(); - self::$sessionObj = self::$diContainer->get(SessionHandler::class); + self::$sessionObj = SessionHandler::getInstance(); } /** diff --git a/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php b/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php index cd1eda6277..afeb514efd 100644 --- a/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php +++ b/wcfsetup/install/files/lib/system/language/LanguageFactory.class.php @@ -25,11 +25,6 @@ class LanguageFactory extends SingletonFactory { */ protected $cache = null; - /** - * @var LanguageCacheBuilder - */ - protected $languageCacheBuilder; - /** * initialized languages * @var Language[] @@ -42,17 +37,6 @@ class LanguageFactory extends SingletonFactory { */ protected $scriptingCompiler = null; - /** - * LanguageFactory constructor. - * - * @param LanguageCacheBuilder $languageCacheBuilder - */ - public function __construct(LanguageCacheBuilder $languageCacheBuilder) { - $this->languageCacheBuilder = $languageCacheBuilder; - - parent::__construct(); - } - /** * @see SingletonFactory::init() */ @@ -232,7 +216,7 @@ class LanguageFactory extends SingletonFactory { */ protected function loadCache() { if (defined('WCF_N')) { - $this->cache = $this->languageCacheBuilder->getData(); + $this->cache = LanguageCacheBuilder::getInstance()->getData(); } } @@ -240,7 +224,7 @@ class LanguageFactory extends SingletonFactory { * Clears languages cache. */ public function clearCache() { - $this->languageCacheBuilder->reset(); + LanguageCacheBuilder::getInstance()->reset(); } /**