Skip to content

Commit

Permalink
Merge pull request #1811 from nextcloud/fix/remote-activity-constructor
Browse files Browse the repository at this point in the history
fix/remote activity constructor
  • Loading branch information
miaulalala authored Oct 14, 2024
2 parents f416670 + cc0ff11 commit cb536ae
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions lib/BackgroundJob/RemoteActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,19 @@

use GuzzleHttp\Exception\ClientException;
use OCA\Activity\Extension\Files;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\QueuedJob;
use OCP\Federation\ICloudId;
use OCP\Federation\ICloudIdManager;
use OCP\Http\Client\IClientService;

class RemoteActivity extends QueuedJob {
/** @var IClientService */
protected $clientService;

/** @var ICloudIdManager */
protected $cloudIdManager;

public function __construct(IClientService $clientService, ICloudIdManager $cloudIdManager) {
$this->clientService = $clientService;
$this->cloudIdManager = $cloudIdManager;
public function __construct(
ITimeFactory $timeFactory,
private readonly IClientService $clientService,
private readonly ICloudIdManager $cloudIdManager,
) {
parent::__construct($timeFactory);
}

protected function run($argument) {
Expand Down

0 comments on commit cb536ae

Please sign in to comment.