diff --git a/developer_manual/release_notes/deprecations.rst b/developer_manual/release_notes/deprecations.rst index 75965bfb926..dba1b2d72ea 100644 --- a/developer_manual/release_notes/deprecations.rst +++ b/developer_manual/release_notes/deprecations.rst @@ -26,6 +26,11 @@ New deprecations - ``\OCP\Util::isPublicLinkPasswordRequired`` is now deprecated and you need to use ``\OCP\Share\IManager::shareApiLinkEnforcePassword`` instead. - ``\OCP\Util::isDefaultExpireDateEnforced`` is now deprecated and you need to use ``\OCP\Share\IManager::shareApiLinkDefaultExpireDateEnforced`` instead. +Application management +^^^^^^^^^^^^^^^^^^^^^^ + +- ``\OCP\AppFramework\App::buildAppNamespace`` is deprecated in favor of non-static method ``\OCP\App\IAppManager::getAppNamespace`` + Older deprecations ------------------ diff --git a/developer_manual/release_notes/new.rst b/developer_manual/release_notes/new.rst index 23e7be73396..f47bed53801 100644 --- a/developer_manual/release_notes/new.rst +++ b/developer_manual/release_notes/new.rst @@ -34,3 +34,13 @@ but they might be required to have a fully working instance later on. Expensive repair steps are only executed when explicitly requested by the administrator. See :ref:`migration-repair-steps` for details. + +Application namespace management +-------------------------------- + +``\OCP\App\IAppManager`` was extended with two new methods related to application namespaces: + +- ``getAppNamespace(string $appId): string`` returns the namespace for an application from its appid. See `Documentation `_. +- ``getAppFromNamespace(string $className): ?string`` does the opposite. Less common but it is used in guests application. See `Documentation `_. + +This replaces static method ``\OCP\AppFramework\App::buildAppNamespace`` which is now deprecated.