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:37:17 +02:00
|
|
|
use OCP\Util;
|
2026-04-16 14:01:13 +02:00
|
|
|
|
|
|
|
|
class Application extends App implements IBootstrap {
|
|
|
|
|
|
|
|
|
|
public function __construct(array $urlParams = []) {
|
2026-04-16 16:41:53 +02:00
|
|
|
parent::__construct('minimalprofile', $urlParams);
|
2026-04-16 14:01:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function register(IRegistrationContext $context): void {
|
2026-04-16 16:41:53 +02:00
|
|
|
Util::addScript('minimalprofile', 'minimalprofile');
|
|
|
|
|
file_put_contents('/tmp/mp_register.log', date('Y-m-d H:i:s') . ' register added JS' . "\n", FILE_APPEND);
|
2026-04-16 14:01:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function boot(IBootContext $context): void {
|
|
|
|
|
}
|
|
|
|
|
}
|