Application.php 746 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\ShareByMail\AppInfo;
  8. use OCA\ShareByMail\Capabilities;
  9. use OCP\AppFramework\App;
  10. use OCP\AppFramework\Bootstrap\IBootContext;
  11. use OCP\AppFramework\Bootstrap\IBootstrap;
  12. use OCP\AppFramework\Bootstrap\IRegistrationContext;
  13. class Application extends App implements IBootstrap {
  14. public const APP_ID = 'sharebymail';
  15. public function __construct() {
  16. parent::__construct(self::APP_ID);
  17. }
  18. public function register(IRegistrationContext $context): void {
  19. $context->registerCapability(Capabilities::class);
  20. }
  21. public function boot(IBootContext $context): void {
  22. }
  23. }