mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Merge pull request #6450 from HouraisanNEET/patch-3
Update bootstrap.rst
This commit is contained in:
commit
ea3227386b
@ -82,7 +82,7 @@ The class **must** extend ``OCP\AppFramework\App`` and may optionally implement
|
||||
// ... boot logic goes here ...
|
||||
|
||||
/** @var IManager $manager */
|
||||
$manager = $context->getAppContainer()->query(IManager::class)
|
||||
$manager = $context->getAppContainer()->query(IManager::class);
|
||||
$manager->registerNotifierService(Notifier::class);
|
||||
}
|
||||
|
||||
@ -144,6 +144,6 @@ class and query an instance like
|
||||
declare(strict_types=1);
|
||||
|
||||
// Register the composer autoloader for packages shipped by this app, if applicable
|
||||
@include_once __DIR__ . '/../vendor/autoload.php'
|
||||
include_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$app = \OC::$server->query(\OCA\MyApp\AppInfo\Application::class);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user