* @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();
}
/**
*/
protected $cache = null;
- /**
- * @var LanguageCacheBuilder
- */
- protected $languageCacheBuilder;
-
/**
* initialized languages
* @var Language[]
*/
protected $scriptingCompiler = null;
- /**
- * LanguageFactory constructor.
- *
- * @param LanguageCacheBuilder $languageCacheBuilder
- */
- public function __construct(LanguageCacheBuilder $languageCacheBuilder) {
- $this->languageCacheBuilder = $languageCacheBuilder;
-
- parent::__construct();
- }
-
/**
* @see SingletonFactory::init()
*/
*/
protected function loadCache() {
if (defined('WCF_N')) {
- $this->cache = $this->languageCacheBuilder->getData();
+ $this->cache = LanguageCacheBuilder::getInstance()->getData();
}
}
* Clears languages cache.
*/
public function clearCache() {
- $this->languageCacheBuilder->reset();
+ LanguageCacheBuilder::getInstance()->reset();
}
/**