Files
deckflow/appinfo/app.php
Patrick Niebeling 1e46c19f1b Fix
2025-03-12 11:29:30 +01:00

26 lines
801 B
PHP

<?php
namespace OCA\Deckflow\AppInfo;
use OCP\AppFramework\App;
use OCP\IContainer;
use OCA\Deckflow\Controller\DeckflowController;
use OCA\Deckflow\Migrations\Version20250312000000; // Migration importieren
class Application extends App {
public function __construct(array $urlParams = []) {
parent::__construct('deckflow', $urlParams);
// Controller registrieren
$container = $this->getContainer();
$container->registerService('DeckflowController', function (IContainer $c) {
return new DeckflowController($c['AppName'], $c);
});
// Migration ausführen
\OC::$server->getMigrationService()->registerMigration(Version20250312000000::class);
\OC::$server->getBackgroundJobManager()->add(new WorkflowJob());
}
}