initial commit
This commit is contained in:
27
lib/AppInfo/Application.php
Normal file
27
lib/AppInfo/Application.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace OCA\Pride\AppInfo;
|
||||
|
||||
use OCP\Util;
|
||||
use OCP\AppFramework\App;
|
||||
use OCP\AppFramework\Bootstrap\IBootContext;
|
||||
use OCP\AppFramework\Bootstrap\IBootstrap;
|
||||
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
||||
use OCP\IConfig;
|
||||
|
||||
class Application extends App implements IBootstrap {
|
||||
const APP_ID = 'pride';
|
||||
public function __construct(array $urlParams = []) {
|
||||
parent::__construct(self::APP_ID, $urlParams);
|
||||
}
|
||||
|
||||
public function register(IRegistrationContext $ctx): void {
|
||||
$config = \OC::$server->get(IConfig::class);
|
||||
}
|
||||
|
||||
public function boot(IBootContext $ctx): void {
|
||||
Util::addStyle(self::APP_ID, 'pride');
|
||||
Util::addScript(self::APP_ID, 'pride');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user