Skip to content

Commit b22b442

Browse files
authored
Merge pull request #13061 from nextcloud/backport/13057/stable31
[stable31] feat: Document the move of IStorage constructor to a new interface
2 parents 04b580e + bfe154d commit b22b442

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_31.rst

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ Added APIs
123123
- If an app supports file conversion, it may now register an ``OCP\Files\Conversion\ConversionProvider`` which will
124124
be called automatically based on the supported MIME types. An app may register as many of these as needed.
125125
- New events ``OCP\User\Events\BeforeUserIdUnassignedEvent``, ``OCP\User\Events\UserIdUnassignedEvent``, and ``OCP\User\Events\UserIdAssignedEvent`` have been added to replace the hooks ``\OC\User::preUnassignedUserId``, ``\OC\User::postUnassignedUserId`` and ``\OC\User::assignedUserId``.
126+
- New interface ``OCP\Files\Storage\IConstructableStorage`` for storages that can be built by passing only an array to the constructor.
126127

127128
Changed APIs
128129
^^^^^^^^^^^^
@@ -171,6 +172,7 @@ Changed APIs
171172
- ``OCP\Preview\BeforePreviewFetchedEvent`` constructor has a new parameter ``$mimeType`` which should be a string or null.
172173
- It has a new method ``getMimeType()`` to get the new property.
173174
- ``OCP\Files\Storage::needsPartFile`` method was moved to interface ``OCP\Files\Storage\IStorage``.
175+
- The constructor was removed from interface ``OCP\Files\Storage\IStorage`` so that wrappers can use DI in their constructor. If your storage implementation is supposed to be built by calling the constructor, please implement the new interface ``OCP\Files\Storage\IConstructableStorage``.
174176

175177
Deprecated APIs
176178
^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)