IRegistrationContext
in
The context object passed to IBootstrap::register
Tags
Table of Contents
Methods
- registerAlternativeLogin() : void
- Register an alternative login option
- registerCalendarProvider() : void
- Register a calendar provider
- registerCalendarResourceBackend() : void
- Register a resource backend for the DAV server
- registerCalendarRoomBackend() : void
- Register a room backend for the DAV server
- registerCapability() : void
- registerCrashReporter() : void
- Register an implementation of \OCP\Support\CrashReport\IReporter that will receive unhandled exceptions and throwables
- registerDashboardWidget() : void
- Register an implementation of \OCP\Dashboard\IWidget that will handle the implementation of a dashboard widget
- registerDeclarativeSettings() : void
- Register an implementation of \OCP\Settings\IDeclarativeSettings that will handle the implementation of declarative settings
- registerEventListener() : void
- Register a service listener
- registerInitialStateProvider() : void
- Register an initialstate provider
- registerMailProvider() : void
- Register a mail provider
- registerMiddleware() : void
- registerNotifierService() : void
- Register an INotifier class
- registerParameter() : void
- registerPreviewProvider() : void
- Register a preview provider
- registerProfileLinkAction() : void
- Register an implementation of \OCP\Profile\ILinkAction that will handle the implementation of a profile link action
- registerPublicShareTemplateProvider() : void
- Register an implementation of IPublicShareTemplateProvider.
- registerReferenceProvider() : void
- Register a reference provider
- registerSearchProvider() : void
- Register a search provider for the unified search
- registerSensitiveMethods() : void
- Announce methods of classes that may contain sensitive values, which should be obfuscated before being logged.
- registerService() : void
- Register a service
- registerServiceAlias() : void
- registerSetupCheck() : void
- Register an implementation of \OCP\SetupCheck\ISetupCheck that will handle the implementation of a setup check
- registerSpeechToTextProvider() : void
- Register a custom SpeechToText provider class that can provide transcription of audio through the OCP\SpeechToText APIs
- registerTalkBackend() : void
- Register the backend of the Talk app
- registerTaskProcessingProvider() : void
- Register an implementation of \OCP\TaskProcessing\IProvider that will handle the implementation of task processing
- registerTaskProcessingTaskType() : void
- Register an implementation of \OCP\TaskProcessing\ITaskType that will handle the implementation of a task processing type
- registerTeamResourceProvider() : void
- registerTemplateProvider() : void
- Register a custom template provider class that is able to inject custom templates in addition to the user defined ones
- registerTextProcessingProvider() : void
- Register a custom text processing provider class that provides a promptable language model through the OCP\TextProcessing APIs
- registerTextToImageProvider() : void
- Register a custom text2image provider class that provides the possibility to generate images through the OCP\TextToImage APIs
- registerTranslationProvider() : void
- Register a custom translation provider class that can provide translation between languages through the OCP\Translation APIs
- registerTwoFactorProvider() : void
- Register a two-factor provider
- registerUserMigrator() : void
- Register an implementation of \OCP\UserMigration\IMigrator that will handle the implementation of a migrator
- registerWellKnownHandler() : void
- Register a well known protocol handler
Methods
registerAlternativeLogin()
Register an alternative login option
public
registerAlternativeLogin(string $class) : void
It is allowed to register more than one option per app.
Parameters
- $class : string
Tags
registerCalendarProvider()
Register a calendar provider
public
registerCalendarProvider(string $class) : void
Parameters
- $class : string
Tags
registerCalendarResourceBackend()
Register a resource backend for the DAV server
public
registerCalendarResourceBackend(string $class) : void
Parameters
- $class : string
Tags
registerCalendarRoomBackend()
Register a room backend for the DAV server
public
registerCalendarRoomBackend(string $class) : void
Parameters
- $class : string
Tags
registerCapability()
public
registerCapability(string $capability) : void
Parameters
- $capability : string
Tags
registerCrashReporter()
Register an implementation of \OCP\Support\CrashReport\IReporter that will receive unhandled exceptions and throwables
public
registerCrashReporter(string $reporterClass) : void
Parameters
- $reporterClass : string
Tags
registerDashboardWidget()
Register an implementation of \OCP\Dashboard\IWidget that will handle the implementation of a dashboard widget
public
registerDashboardWidget(string $widgetClass) : void
Parameters
- $widgetClass : string
Tags
registerDeclarativeSettings()
Register an implementation of \OCP\Settings\IDeclarativeSettings that will handle the implementation of declarative settings
public
registerDeclarativeSettings(string $declarativeSettingsClass) : void
Parameters
- $declarativeSettingsClass : string
Tags
registerEventListener()
Register a service listener
public
registerEventListener(string $event, string $listener[, int $priority = 0 ]) : void
This is equivalent to calling IEventDispatcher::addServiceListener
Parameters
- $event : string
-
preferably the fully-qualified class name of the Event sub class to listen for
- $listener : string
-
fully qualified class name (or ::class notation) of a \OCP\EventDispatcher\IEventListener that can be built by the DI container
- $priority : int = 0
-
The higher this value, the earlier an event listener will be triggered in the chain (defaults to 0)
Tags
registerInitialStateProvider()
Register an initialstate provider
public
registerInitialStateProvider(string $class) : void
It is allowed to register more than one provider per app.
Parameters
- $class : string
Tags
registerMailProvider()
Register a mail provider
public
registerMailProvider(string $class) : void
Parameters
- $class : string
Tags
registerMiddleware()
public
registerMiddleware(string $class[, bool $global = false ]) : void
Parameters
- $class : string
- $global : bool = false
-
load this middleware also for requests of other apps? Added in Nextcloud 26
Tags
registerNotifierService()
Register an INotifier class
public
registerNotifierService(string $notifierClass) : void
Parameters
- $notifierClass : string
Tags
registerParameter()
public
registerParameter(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
Tags
registerPreviewProvider()
Register a preview provider
public
registerPreviewProvider(string $previewProviderClass, string $mimeTypeRegex) : void
It is allowed to register more than one provider per app.
Parameters
- $previewProviderClass : string
- $mimeTypeRegex : string
Tags
registerProfileLinkAction()
Register an implementation of \OCP\Profile\ILinkAction that will handle the implementation of a profile link action
public
registerProfileLinkAction(string $actionClass) : void
Parameters
- $actionClass : string
Tags
registerPublicShareTemplateProvider()
Register an implementation of IPublicShareTemplateProvider.
public
registerPublicShareTemplateProvider(string $class) : void
Parameters
- $class : string
Tags
registerReferenceProvider()
Register a reference provider
public
registerReferenceProvider(string $class) : void
Parameters
- $class : string
Tags
registerSearchProvider()
Register a search provider for the unified search
public
registerSearchProvider(string $class) : void
It is allowed to register more than one provider per app as the search results can go into distinct sections, e.g. "Files" and "Files shared with you" in the Files app.
Parameters
- $class : string
Tags
registerSensitiveMethods()
Announce methods of classes that may contain sensitive values, which should be obfuscated before being logged.
public
registerSensitiveMethods(string $class, array<string|int, string> $methods) : void
Parameters
- $class : string
- $methods : array<string|int, string>
Tags
registerService()
Register a service
public
registerService(string $name, callable $factory[, bool $shared = true ]) : void
Parameters
- $name : string
- $factory : callable
- $shared : bool = true
-
If set to true the factory result will be cached otherwise every query will call the factory again
Tags
registerServiceAlias()
public
registerServiceAlias(string $alias, string $target) : void
Parameters
- $alias : string
- $target : string
Tags
registerSetupCheck()
Register an implementation of \OCP\SetupCheck\ISetupCheck that will handle the implementation of a setup check
public
registerSetupCheck(ISetupCheck> $setupCheckClass) : void
Parameters
- $setupCheckClass : ISetupCheck>
Tags
registerSpeechToTextProvider()
Register a custom SpeechToText provider class that can provide transcription of audio through the OCP\SpeechToText APIs
public
registerSpeechToTextProvider(string $providerClass) : void
Parameters
- $providerClass : string
Tags
registerTalkBackend()
Register the backend of the Talk app
public
registerTalkBackend(string $backend) : void
This service must only be used by the Talk app
Parameters
- $backend : string
Tags
registerTaskProcessingProvider()
Register an implementation of \OCP\TaskProcessing\IProvider that will handle the implementation of task processing
public
registerTaskProcessingProvider(string $taskProcessingProviderClass) : void
Parameters
- $taskProcessingProviderClass : string
Tags
registerTaskProcessingTaskType()
Register an implementation of \OCP\TaskProcessing\ITaskType that will handle the implementation of a task processing type
public
registerTaskProcessingTaskType(string $taskProcessingTaskTypeClass) : void
Parameters
- $taskProcessingTaskTypeClass : string
Tags
registerTeamResourceProvider()
public
registerTeamResourceProvider(string $class) : void
Parameters
- $class : string
Tags
registerTemplateProvider()
Register a custom template provider class that is able to inject custom templates in addition to the user defined ones
public
registerTemplateProvider(string $providerClass) : void
Parameters
- $providerClass : string
Tags
registerTextProcessingProvider()
Register a custom text processing provider class that provides a promptable language model through the OCP\TextProcessing APIs
public
registerTextProcessingProvider(string $providerClass) : void
Parameters
- $providerClass : string
Tags
registerTextToImageProvider()
Register a custom text2image provider class that provides the possibility to generate images through the OCP\TextToImage APIs
public
registerTextToImageProvider(string $providerClass) : void
Parameters
- $providerClass : string
Tags
registerTranslationProvider()
Register a custom translation provider class that can provide translation between languages through the OCP\Translation APIs
public
registerTranslationProvider(string $providerClass) : void
Parameters
- $providerClass : string
Tags
registerTwoFactorProvider()
Register a two-factor provider
public
registerTwoFactorProvider(string $twoFactorProviderClass) : void
Parameters
- $twoFactorProviderClass : string
Tags
registerUserMigrator()
Register an implementation of \OCP\UserMigration\IMigrator that will handle the implementation of a migrator
public
registerUserMigrator(string $migratorClass) : void
Parameters
- $migratorClass : string
Tags
registerWellKnownHandler()
Register a well known protocol handler
public
registerWellKnownHandler(string $class) : void
It is allowed to register more than one handler per app.
Parameters
- $class : string