Files
nextcloud-pantry/gen/task-queued/{{pascalCase name}}Task.php

26 lines
548 B
PHP

<?php
declare(strict_types=1);
// SPDX-FileCopyrightText: Chen Asraf <contact@casraf.dev>
// SPDX-License-Identifier: AGPL-3.0-or-later
namespace OCA\Pantry\Cron;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\QueuedJob;
use Psr\Log\LoggerInterface;
class {{pascalCase name}}Task extends QueuedJob {
public function __construct(
ITimeFactory $time,
private LoggerInterface $logger,
) {
parent::__construct($time);
}
protected function run($arguments): void {
// $this->myService->doCron($arguments['uid']);
}
}