diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-15 10:02:14 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-08-31 16:20:06 +0200 |
commit | 68d0038eb0012ef908e7d2c23ec9a724baf820d2 (patch) | |
tree | 343d379b9b5461915799cf8a008024b643eaa3ce /lib/public | |
parent | eaef5687f9ed8dd173fbd8c4eb272462fb532141 (diff) | |
download | nextcloud-server-68d0038eb0012ef908e7d2c23ec9a724baf820d2.tar.gz nextcloud-server-68d0038eb0012ef908e7d2c23ec9a724baf820d2.zip |
Move registration to IBootstrap
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/AppFramework/Bootstrap/IRegistrationContext.php | 10 | ||||
-rw-r--r-- | lib/public/Collaboration/Reference/IReferenceManager.php | 7 |
2 files changed, 10 insertions, 7 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php index 6b10d7bfc0f..0f398c13979 100644 --- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php +++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php @@ -33,6 +33,7 @@ use OCP\AppFramework\IAppContainer; use OCP\Authentication\TwoFactorAuth\IProvider; use OCP\Calendar\ICalendarProvider; use OCP\Capabilities\ICapability; +use OCP\Collaboration\Reference\IReferenceProvider; use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\Template\ICustomTemplateProvider; use OCP\IContainer; @@ -255,6 +256,15 @@ interface IRegistrationContext { public function registerCalendarProvider(string $class): void; /** + * Register a reference provider + * + * @param string $class + * @psalm-param class-string<IReferenceProvider> $class + * @since 25.0.0 + */ + public function registerReferenceProvider(string $class): void; + + /** * Register an implementation of \OCP\Profile\ILinkAction that * will handle the implementation of a profile link action * diff --git a/lib/public/Collaboration/Reference/IReferenceManager.php b/lib/public/Collaboration/Reference/IReferenceManager.php index dda0d030785..8d2110911d3 100644 --- a/lib/public/Collaboration/Reference/IReferenceManager.php +++ b/lib/public/Collaboration/Reference/IReferenceManager.php @@ -41,11 +41,4 @@ interface IReferenceManager { * @since 25.0.0 */ public function resolveReference(string $reference): ?IReference; - - /** - * Register a new reference provider - * - * @since 25.0.0 - */ - public function registerReferenceProvider(IReferenceProvider $provider): void; } |