mirror of
https://github.com/nextcloud/server.git
synced 2025-02-23 00:19:14 +00:00
35 lines
736 B
PHP
35 lines
736 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OCP\AppFramework\Bootstrap;
|
|
|
|
/**
|
|
* @since 20.0.0
|
|
*/
|
|
interface IBootstrap {
|
|
/**
|
|
* @param IRegistrationContext $context
|
|
*
|
|
* @since 20.0.0
|
|
*/
|
|
public function register(IRegistrationContext $context): void;
|
|
|
|
/**
|
|
* Boot the application
|
|
*
|
|
* At this stage you can assume that all services are registered and the DI
|
|
* container(s) are ready to be queried.
|
|
*
|
|
* This is also the state where an optional `appinfo/app.php` was loaded.
|
|
*
|
|
* @param IBootContext $context
|
|
*
|
|
* @since 20.0.0
|
|
*/
|
|
public function boot(IBootContext $context): void;
|
|
}
|