aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing
diff options
context:
space:
mode:
authorSamuel <faust64@gmail.com>2021-02-09 07:49:01 +0100
committerSamuel <faust64@gmail.com>2021-02-09 07:49:01 +0100
commite7ea31dcaa9b577d7152b79b3f34f94d9873af55 (patch)
treeefde6390b6a5e7534f06fa9b633fbd0e0e752e12 /apps/federatedfilesharing
parent28214f73f38c4c1cf5153bc10b299ea1ca031491 (diff)
downloadnextcloud-server-e7ea31dcaa9b577d7152b79b3f34f94d9873af55.tar.gz
nextcloud-server-e7ea31dcaa9b577d7152b79b3f34f94d9873af55.zip
fix(logger): use logger from constructor arguments
Signed-off-by: Samuel <faust64@gmail.com>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r--apps/federatedfilesharing/lib/Notifications.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/Notifications.php b/apps/federatedfilesharing/lib/Notifications.php
index 975b9e1f09a..cb72dd343cf 100644
--- a/apps/federatedfilesharing/lib/Notifications.php
+++ b/apps/federatedfilesharing/lib/Notifications.php
@@ -65,10 +65,23 @@ class Notifications {
/** @var ILogger */
protected $logger;
+ /**
+ * FederatedFileSharing constructor
+ *
+ * @param AddressHandler $addressHandler
+ * @param IClientService $httpClientService
+ * @param IDiscoveryServicee $discoveryService
+ * @param ILogger $logger
+ * @param IJobList $jobList
+ * @param ICloudFederationProviderManager $federationProviderManager
+ * @param ICloudFederationFactory $cloudFederationFactory
+ * @param IEventDispatcher $eventDispatcher
+ */
public function __construct(
AddressHandler $addressHandler,
IClientService $httpClientService,
IDiscoveryService $discoveryService,
+ ILogger $logger,
IJobList $jobList,
ICloudFederationProviderManager $federationProviderManager,
ICloudFederationFactory $cloudFederationFactory,
@@ -78,7 +91,7 @@ class Notifications {
$this->httpClientService = $httpClientService;
$this->discoveryService = $discoveryService;
$this->jobList = $jobList;
- $this->logger = OC::$server->getLogger();
+ $this->logger = $logger;
$this->federationProviderManager = $federationProviderManager;
$this->cloudFederationFactory = $cloudFederationFactory;
$this->eventDispatcher = $eventDispatcher;