This commit is contained in:
Patrick Niebeling
2025-03-12 10:46:58 +01:00
parent 05f50ea068
commit 054cdb70c8
10 changed files with 151 additions and 167 deletions

View File

@ -0,0 +1,31 @@
<?php
namespace OCA\Deckflow\AppInfo;
use OCP\AppFramework\App;
use OCA\Deckflow\Controller\SettingsController;
use OCA\Deckflow\Cron\MoveOverdueCardsJob;
use OCP\IContainer;
class Application extends App {
public function __construct(array $urlParams = []) {
parent::__construct('deckflow', $urlParams);
$container = $this->getContainer();
// Routen für das Backend
$container->registerService('SettingsController', function(IContainer $c) {
return new SettingsController(
$c->query('OCP\IRequest'),
$c->query('OCP\IUserSession'),
$c->query('OCA\Deckflow\Service\WorkflowService')
);
});
// CronJob registrieren
$container->registerService('MoveOverdueCardsJob', function(IContainer $c) {
return new MoveOverdueCardsJob(
$c->query('OCA\Deckflow\Service\WorkflowService')
);
});
}
}