31 lines
858 B
PHP
31 lines
858 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\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 {
|
|
}
|
|
|
|
public function boot(IBootContext $context): void {
|
|
// Load CSS from our css/ folder using standard Util::addStyle
|
|
// This loads css/minimalprofile.css
|
|
Util::addStyle('minimalprofile', 'minimalprofile');
|
|
|
|
file_put_contents('/tmp/minimalprofile.log', date('Y-m-d H:i:s') . ' boot, loaded style' . "\n", FILE_APPEND);
|
|
}
|
|
} |