aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-10-11 08:33:09 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-10-11 08:33:09 +0200
commit543190f8b3228b994ba897c9a43fdc3f61adf663 (patch)
tree650022215976952462cef64f59c25e86fa20a006 /apps/provisioning_api
parentf6a79338d4ea66f9c341d004951b606b5310b478 (diff)
downloadnextcloud-server-543190f8b3228b994ba897c9a43fdc3f61adf663.tar.gz
nextcloud-server-543190f8b3228b994ba897c9a43fdc3f61adf663.zip
Do not create Application instances directly
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/provisioning_api')
-rw-r--r--apps/provisioning_api/lib/FederatedFileSharingFactory.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/provisioning_api/lib/FederatedFileSharingFactory.php b/apps/provisioning_api/lib/FederatedFileSharingFactory.php
index e856b2a9bed..0c7bb7068dd 100644
--- a/apps/provisioning_api/lib/FederatedFileSharingFactory.php
+++ b/apps/provisioning_api/lib/FederatedFileSharingFactory.php
@@ -25,9 +25,19 @@ declare(strict_types=1);
namespace OCA\Provisioning_API;
use OCA\FederatedFileSharing\AppInfo\Application;
+use OCP\IServerContainer;
class FederatedFileSharingFactory {
+
+ /** @var IServerContainer */
+ private $serverContainer;
+
+ public function __construct(IServerContainer $serverContainer) {
+ $this->serverContainer = $serverContainer;
+ }
+
public function get(): Application {
- return new Application();
+ return $this->serverContainer->query(Application::class);
}
+
}