doc(ocp): Upgrade capability registration recommendation

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2023-06-29 15:54:13 +02:00
parent 95145ee0c9
commit 19499964d0
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
1 changed files with 2 additions and 5 deletions

View File

@ -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
*/