diff --git a/developer_manual/app_development/bootstrap.rst b/developer_manual/app_development/bootstrap.rst index 61c13b4c2..a6bf569e7 100644 --- a/developer_manual/app_development/bootstrap.rst +++ b/developer_manual/app_development/bootstrap.rst @@ -52,11 +52,12 @@ The class **must** extend ``OCP\AppFramework\App`` and may optionally implement namespace OCA\MyApp\AppInfo; use OCA\MyApp\Listeners\UserDeletedListener; - use OCA\MyApp\Notification\Notifier; + use OCA\MyApp\Notifications\Notifier; use OCP\AppFramework\App; use OCP\AppFramework\Bootstrap\IBootContext; use OCP\AppFramework\Bootstrap\IBootstrap; use OCP\AppFramework\Bootstrap\IRegistrationContext; + use OCP\Notification\IManager; use OCP\User\Events; class Application extends App implements IBootstrap { @@ -69,7 +70,7 @@ The class **must** extend ``OCP\AppFramework\App`` and may optionally implement // ... registration logic goes here ... // Register the composer autoloader for packages shipped by this app, if applicable - @include_once __DIR__ . '/../../vendor/autoload.php'; + include_once __DIR__ . '/../../vendor/autoload.php'; $context->registerEventListener( BeforeUserDeletedEvent::class,