diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-06-29 15:54:13 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-07-03 10:03:45 +0200 |
commit | 19499964d04a185380efbccd72daa5a924ae87c7 (patch) | |
tree | cc9b13eaaed72278b01e3d1e22a60adceeabf04a /lib/public/Capabilities | |
parent | 95145ee0c9a7c0fdab35998c4e159337e4fc1943 (diff) | |
download | nextcloud-server-19499964d04a185380efbccd72daa5a924ae87c7.tar.gz nextcloud-server-19499964d04a185380efbccd72daa5a924ae87c7.zip |
doc(ocp): Upgrade capability registration recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/Capabilities')
-rw-r--r-- | lib/public/Capabilities/ICapability.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/public/Capabilities/ICapability.php b/lib/public/Capabilities/ICapability.php index 7a7cf2ad2a4..2d3f5215736 100644 --- a/lib/public/Capabilities/ICapability.php +++ b/lib/public/Capabilities/ICapability.php @@ -25,11 +25,8 @@ namespace OCP\Capabilities; * Minimal interface that has to be implemented for a class to be considered * a capability. * - * In an application use: - * $this->getContainer()->registerCapability('OCA\MY_APP\Capabilities'); - * To register capabilities. - * - * The class 'OCA\MY_APP\Capabilities' must then implement ICapability + * In an application use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCapability + * to register capabilities. * * @since 8.2.0 */ |