* @see wcf\system\SingletonFactory::init()
*/
protected function init() {
- CacheHandler::getInstance()->addResource('package', WCF_DIR.'cache/cache.package.php', 'wcf\system\cache\builder\PackageCacheBuilder');
+ CacheHandler::getInstance()->addResource(
+ 'package',
+ WCF_DIR.'cache/cache.package.php',
+ 'wcf\system\cache\builder\PackageCacheBuilder'
+ );
$this->packages = CacheHandler::getInstance()->get('package');
}
return null;
}
+
+ /**
+ * Returns all packages.
+ *
+ * @return array<wcf\data\package\Package>
+ */
+ public function getPackages() {
+ return $this->packages;
+ }
}