mirror of https://github.com/nextcloud/server
doc(ocp): Upgrade capability registration recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
95145ee0c9
commit
19499964d0
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue