2021-08-21 14:17:14 +00:00
|
|
|
<?php
|
2023-10-11 19:55:03 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
// SPDX-FileCopyrightText: BVSC e.V. <no@example.com>
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-08-21 14:17:14 +00:00
|
|
|
|
2021-08-21 14:25:23 +00:00
|
|
|
namespace OCA\UPschooling\AppInfo;
|
2021-08-21 14:17:14 +00:00
|
|
|
|
|
|
|
use OCP\AppFramework\App;
|
2021-09-15 15:19:48 +00:00
|
|
|
use OCP\AppFramework\Bootstrap\IBootContext;
|
|
|
|
use OCP\AppFramework\Bootstrap\IBootstrap;
|
|
|
|
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
2021-08-21 14:17:14 +00:00
|
|
|
|
2021-09-15 15:19:48 +00:00
|
|
|
class Application extends App implements IBootstrap {
|
2021-08-21 14:25:23 +00:00
|
|
|
public const APP_ID = 'upschooling';
|
2021-08-21 14:17:14 +00:00
|
|
|
|
2023-10-11 19:55:03 +00:00
|
|
|
public function __construct()
|
|
|
|
{
|
2021-08-21 14:17:14 +00:00
|
|
|
parent::__construct(self::APP_ID);
|
|
|
|
}
|
2021-09-15 15:19:48 +00:00
|
|
|
|
2023-10-11 19:55:03 +00:00
|
|
|
public function register(IRegistrationContext $context): void
|
|
|
|
{
|
|
|
|
// Register the composer autoloader for packages shipped by this app, if applicable
|
|
|
|
include_once __DIR__ . '/../../vendor/autoload.php';
|
|
|
|
}
|
2021-09-15 15:19:48 +00:00
|
|
|
|
2023-10-11 19:55:03 +00:00
|
|
|
public function boot(IBootContext $context): void
|
|
|
|
{
|
|
|
|
// nothing to boot?
|
|
|
|
}
|
2021-08-21 14:17:14 +00:00
|
|
|
}
|