2026-04-16 14:01:13 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace OCA\MinimalProfile\AppInfo;
|
|
|
|
|
|
|
|
|
|
use OCP\AppFramework\App;
|
|
|
|
|
use OCP\AppFramework\Bootstrap\IBootContext;
|
|
|
|
|
use OCP\AppFramework\Bootstrap\IBootstrap;
|
|
|
|
|
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
2026-04-16 14:58:16 +02:00
|
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
2026-04-16 14:37:17 +02:00
|
|
|
use OCP\Util;
|
2026-04-16 14:01:13 +02:00
|
|
|
|
|
|
|
|
class Application extends App implements IBootstrap {
|
|
|
|
|
|
|
|
|
|
public const APP_ID = 'minimalprofile';
|
|
|
|
|
|
|
|
|
|
public function __construct(array $urlParams = []) {
|
|
|
|
|
parent::__construct(self::APP_ID, $urlParams);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function register(IRegistrationContext $context): void {
|
2026-04-16 14:58:16 +02:00
|
|
|
$context->registerEventListener(
|
|
|
|
|
TemplateResponse::EVENT_LOAD_ADDITIONAL_SCRIPTS,
|
2026-04-16 15:02:41 +02:00
|
|
|
function() {
|
|
|
|
|
Util::addStyle('minimalprofile', 'minimalprofile');
|
|
|
|
|
Util::addScript('minimalprofile', 'minimalprofile');
|
|
|
|
|
}
|
2026-04-16 14:58:16 +02:00
|
|
|
);
|
2026-04-16 14:01:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function boot(IBootContext $context): void {
|
2026-04-16 14:50:02 +02:00
|
|
|
}
|
2026-04-16 14:01:13 +02:00
|
|
|
}
|