34 lines
854 B
PHP
34 lines
854 B
PHP
<?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;
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
|
use OCP\Util;
|
|
|
|
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 {
|
|
$context->registerEventListener(
|
|
TemplateResponse::EVENT_LOAD_ADDITIONAL_SCRIPTS,
|
|
function() {
|
|
Util::addStyle('minimalprofile', 'minimalprofile');
|
|
Util::addScript('minimalprofile', 'minimalprofile');
|
|
}
|
|
);
|
|
}
|
|
|
|
public function boot(IBootContext $context): void {
|
|
}
|
|
} |