Skip to content

Commit d26cd35

Browse files
committed
feat: Document IAppManager::getAppNamespace new method
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent a9e427c commit d26cd35

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

developer_manual/release_notes/deprecations.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ New deprecations
2020
2121
.. todo:: This page needs a section for every new deprecation.
2222

23+
Application management
24+
^^^^^^^^^^^^^^^^^^^^^^
25+
26+
- ``\OCP\AppFramework\App::buildAppNamespace`` is deprecated in favor of non-static method ``\OCP\App\IAppManager::getAppNamespace``
27+
28+
2329
Older deprecations
2430
------------------
2531

developer_manual/release_notes/new.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,12 @@ but they might be required to have a fully working instance later on.
3434
Expensive repair steps are only executed when explicitly requested by the administrator.
3535

3636
See :ref:`migration-repair-steps` for details.
37+
38+
Application namespace management
39+
--------------------------------
40+
41+
``\OCP\App\IAppManager`` was extended with two new methods related to application namespaces:
42+
- ``getAppNamespace(string $appId): string`` returns the namespace for an application from its appid
43+
- ``getAppFromNamespace(string $className): ?string`` does the opposite. Less common but it is used in guests application.
44+
45+
This replaces a static method in ``\OCP\AppFramework\App`` which is now deprecated.

0 commit comments

Comments
 (0)