retro/lib/AppInfo/Application.php

28 lines
727 B
PHP
Raw Normal View History

2024-12-26 21:15:05 +01:00
<?php
declare(strict_types=1);
namespace OCA\Retro\AppInfo;
2024-12-26 21:15:05 +01:00
use OCA\Files\Event\LoadAdditionalScriptsEvent;
use OCA\Retro\Listener\LoadAdditionalScriptsListener;
2024-12-26 21:15:05 +01:00
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
class Application extends App implements IBootstrap
{
public const APP_ID = 'retro';
public function __construct() {
parent::__construct(self::APP_ID);
}
public function register(IRegistrationContext $context): void {
$context->registerEventListener(LoadAdditionalScriptsEvent::class, LoadAdditionalScriptsListener::class);
}
2024-12-26 21:15:05 +01:00
public function boot(IBootContext $context): void {}
}