fix(logger): use logger from constructor arguments

Signed-off-by: Samuel <faust64@gmail.com>
This commit is contained in:
Samuel 2021-02-09 07:49:01 +01:00
parent 28214f73f3
commit e7ea31dcaa
1 changed files with 14 additions and 1 deletions

View File

@ -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;