diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-10-11 08:33:09 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-10-11 08:33:09 +0200 |
commit | 543190f8b3228b994ba897c9a43fdc3f61adf663 (patch) | |
tree | 650022215976952462cef64f59c25e86fa20a006 /apps/provisioning_api | |
parent | f6a79338d4ea66f9c341d004951b606b5310b478 (diff) | |
download | nextcloud-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.php | 12 |
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); } + } |