30 lines
765 B
PHP
30 lines
765 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\ChdAdmin\AppInfo;
|
|
|
|
use OCP\AppFramework\App;
|
|
use OCA\ChdAdmin\BackgroundJob\BillingAutoFulfillmentJob;
|
|
use OCP\AppFramework\Bootstrap\IBootContext;
|
|
use OCP\AppFramework\Bootstrap\IBootstrap;
|
|
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
|
use OCP\BackgroundJob\IJobList;
|
|
|
|
class Application extends App implements IBootstrap {
|
|
public const APP_ID = 'chd_admin';
|
|
|
|
public function __construct(array $urlParams = []) {
|
|
parent::__construct(self::APP_ID, $urlParams);
|
|
}
|
|
|
|
public function register(IRegistrationContext $context): void {
|
|
}
|
|
|
|
public function boot(IBootContext $context): void {
|
|
$context->injectFn(function (IJobList $jobList): void {
|
|
$jobList->add(BillingAutoFulfillmentJob::class);
|
|
});
|
|
}
|
|
}
|