Merge pull request #13004 from nextcloud/backport/13001/stable31

[stable31] feat: Document removal of OCP\Files\Storage in 31
This commit is contained in:
Côme Chilliet 2025-04-14 15:31:05 +02:00 committed by GitHub
commit de825a15ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,6 +65,7 @@ Changed APIs
- Legacy class ``OC_Image`` was moved to ``OC\Image``. You should never use it directly but use ``new \OCP\Image()`` instead for building the object and the ``OCP\IImage`` interface for calling methods.
- ``OCP\Preview\BeforePreviewFetchedEvent`` constructor has a new parameter ``$mimeType`` which should be a string or null.
- It has a new method ``getMimeType()`` to get the new property.
- ``OCP\Files\Storage::needsPartFile`` method was moved to interface ``OCP\Files\Storage\IStorage``.
Deprecated APIs
^^^^^^^^^^^^^^^
@ -86,6 +87,7 @@ Removed APIs
})
- Legacy class ``OC_API`` was moved to a private namespace. It should not be needed by applications.
- Deprecated interface ``OCP\Files\Storage`` was removed. Use ``OCP\Files\Storage\IStorage`` instead.
Back-end changes
----------------