IBootstrap.php 736 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\AppFramework\Bootstrap;
  8. /**
  9. * @since 20.0.0
  10. */
  11. interface IBootstrap {
  12. /**
  13. * @param IRegistrationContext $context
  14. *
  15. * @since 20.0.0
  16. */
  17. public function register(IRegistrationContext $context): void;
  18. /**
  19. * Boot the application
  20. *
  21. * At this stage you can assume that all services are registered and the DI
  22. * container(s) are ready to be queried.
  23. *
  24. * This is also the state where an optional `appinfo/app.php` was loaded.
  25. *
  26. * @param IBootContext $context
  27. *
  28. * @since 20.0.0
  29. */
  30. public function boot(IBootContext $context): void;
  31. }