diff options
Diffstat (limited to 'lib/AppInfo/Application.php')
-rw-r--r-- | lib/AppInfo/Application.php | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index adbdce0..c2c88c7 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -23,12 +23,24 @@ declare(strict_types=1); namespace OCA\TwoFactorGateway\AppInfo; +use OCA\TwoFactorGateway\Capabilities; use OCP\AppFramework\App; +use OCP\AppFramework\Bootstrap\IBootContext; +use OCP\AppFramework\Bootstrap\IBootstrap; +use OCP\AppFramework\Bootstrap\IRegistrationContext; -class Application extends App { - public const APP_NAME = 'twofactor_gateway'; +include_once __DIR__ . '/../../vendor/autoload.php'; + +class Application extends App implements IBootstrap { + public const APP_ID = 'twofactor_gateway'; public function __construct(array $urlParams = []) { - parent::__construct(self::APP_NAME, $urlParams); + parent::__construct(self::APP_ID, $urlParams); + } + + public function register(IRegistrationContext $context): void { + } + + public function boot(IBootContext $context): void { } } |