This commit is contained in:
Patrick Niebeling
2025-03-12 11:19:44 +01:00
parent 7f683fcec1
commit 9538c99576
15 changed files with 122 additions and 242 deletions

View File

@ -1,22 +0,0 @@
<?php
namespace OCA\Deckflow\AppInfo;
use OCP\AppFramework\App;
use OCA\Deckflow\Controller\SettingsController;
class Application extends App {
public function __construct() {
parent::__construct('deckflow');
}
public function register() {
$this->getContainer()->registerService('SettingsController', function($c) {
return new SettingsController(
$c->query('OCP\IRequest'),
$c->query('OCP\IUserSession'),
$c->query('OCA\Deckflow\Service\WorkflowService')
);
});
}
}

View File

@ -1,20 +0,0 @@
<?php
use OCP\AppFramework\Router;
use OCP\IContainer;
$container->registerService('SettingsController', function(IContainer $c) {
return new \OCA\Deckflow\Controller\SettingsController(
$c->query('OCP\IRequest'),
$c->query('OCP\IUserSession'),
$c->query('OCA\Deckflow\Service\WorkflowService')
);
});
// Hier wird die Route für den Webhook definiert
$container->registerService('WebhookController', function(IContainer $c) {
return new \OCA\Deckflow\Controller\WebhookController(
$c->query('OCP\IRequest'),
$c->query('OCA\Deckflow\Service\WorkflowService')
);
});