refactor(Sharing): Move SharingBackend to OC

Signed-off-by: provokateurin <kate@provokateurin.de>

# Conflicts:
#	apps/sharing/lib/AppInfo/Application.php
pull/62613/head
provokateurin 4 weeks ago committed by Robin Appelman
parent f84fe75ef7
commit f7be3383de
  1. 2
      apps/files/tests/Sharing/Source/NodeShareSourceTypeTest.php
  2. 1
      apps/sharing/composer/composer/autoload_classmap.php
  3. 1
      apps/sharing/composer/composer/autoload_static.php
  4. 2
      apps/sharing/lib/AppInfo/Application.php
  5. 1
      lib/composer/composer/autoload_classmap.php
  6. 1
      lib/composer/composer/autoload_static.php
  7. 2
      lib/private/Sharing/SharingBackend.php
  8. 1
      lib/private/Sharing/SharingManager.php
  9. 2
      tests/Core/Sharing/Recipient/GroupShareRecipientTypeTest.php
  10. 2
      tests/Core/Sharing/Recipient/UserShareRecipientTypeTest.php
  11. 2
      tests/lib/Sharing/AbstractSharingManagerTests.php

@ -12,9 +12,9 @@ use NCU\Sharing\ISharingRegistry;
use NCU\Sharing\ShareAccessContext;
use NCU\Sharing\Source\ShareSource;
use OC\Files\Filesystem;
use OC\Sharing\SharingBackend;
use OC\User\Database;
use OCA\Files\Sharing\Source\NodeShareSourceType;
use OCA\Sharing\SharingBackend;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\IRootFolder;
use OCP\Files\Node;

@ -27,5 +27,4 @@ return array(
'OCA\\Sharing\\Middleware\\ShareApiEnabledMiddleware' => $baseDir . '/../lib/Middleware/ShareApiEnabledMiddleware.php',
'OCA\\Sharing\\Migration\\Version1000Date20250929161325' => $baseDir . '/../lib/Migration/Version1000Date20250929161325.php',
'OCA\\Sharing\\ResponseDefinitions' => $baseDir . '/../lib/ResponseDefinitions.php',
'OCA\\Sharing\\SharingBackend' => $baseDir . '/../lib/SharingBackend.php',
);

@ -42,7 +42,6 @@ class ComposerStaticInitSharing
'OCA\\Sharing\\Middleware\\ShareApiEnabledMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/ShareApiEnabledMiddleware.php',
'OCA\\Sharing\\Migration\\Version1000Date20250929161325' => __DIR__ . '/..' . '/../lib/Migration/Version1000Date20250929161325.php',
'OCA\\Sharing\\ResponseDefinitions' => __DIR__ . '/..' . '/../lib/ResponseDefinitions.php',
'OCA\\Sharing\\SharingBackend' => __DIR__ . '/..' . '/../lib/SharingBackend.php',
);
public static function getInitializer(ClassLoader $loader)

@ -10,9 +10,9 @@ declare(strict_types=1);
namespace OCA\Sharing\AppInfo;
use NCU\Sharing\ISharingRegistry;
use OC\Sharing\SharingBackend;
use OCA\Sharing\Capabilities;
use OCA\Sharing\Middleware\ShareApiEnabledMiddleware;
use OCA\Sharing\SharingBackend;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;

@ -2296,6 +2296,7 @@ return array(
'OC\\Share20\\UserDeletedListener' => $baseDir . '/lib/private/Share20/UserDeletedListener.php',
'OC\\Share20\\UserRemovedListener' => $baseDir . '/lib/private/Share20/UserRemovedListener.php',
'OC\\Share\\Constants' => $baseDir . '/lib/private/Share/Constants.php',
'OC\\Sharing\\SharingBackend' => $baseDir . '/lib/private/Sharing/SharingBackend.php',
'OC\\Sharing\\SharingManager' => $baseDir . '/lib/private/Sharing/SharingManager.php',
'OC\\Sharing\\SharingRegistry' => $baseDir . '/lib/private/Sharing/SharingRegistry.php',
'OC\\Snowflake\\APCuSequence' => $baseDir . '/lib/private/Snowflake/APCuSequence.php',

@ -2337,6 +2337,7 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
'OC\\Share20\\UserDeletedListener' => __DIR__ . '/../../..' . '/lib/private/Share20/UserDeletedListener.php',
'OC\\Share20\\UserRemovedListener' => __DIR__ . '/../../..' . '/lib/private/Share20/UserRemovedListener.php',
'OC\\Share\\Constants' => __DIR__ . '/../../..' . '/lib/private/Share/Constants.php',
'OC\\Sharing\\SharingBackend' => __DIR__ . '/../../..' . '/lib/private/Sharing/SharingBackend.php',
'OC\\Sharing\\SharingManager' => __DIR__ . '/../../..' . '/lib/private/Sharing/SharingManager.php',
'OC\\Sharing\\SharingRegistry' => __DIR__ . '/../../..' . '/lib/private/Sharing/SharingRegistry.php',
'OC\\Snowflake\\APCuSequence' => __DIR__ . '/../../..' . '/lib/private/Snowflake/APCuSequence.php',

@ -7,7 +7,7 @@
declare(strict_types=1);
namespace OCA\Sharing;
namespace OC\Sharing;
use Exception;
use NCU\Sharing\Exception\ShareInvalidException;

@ -28,7 +28,6 @@ use NCU\Sharing\ShareState;
use NCU\Sharing\ShareUser;
use NCU\Sharing\Source\ShareSource;
use OC\Core\Sharing\Permission\ReshareSharePermissionType;
use OCA\Sharing\SharingBackend;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\EventDispatcher\IEventListener;

@ -15,7 +15,7 @@ use NCU\Sharing\Recipient\ShareRecipient;
use NCU\Sharing\ShareAccessContext;
use OC\Core\Sharing\Recipient\GroupShareRecipientType;
use OC\Group\Database;
use OCA\Sharing\SharingBackend;
use OC\Sharing\SharingBackend;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IDBConnection;
use OCP\IGroup;

@ -14,8 +14,8 @@ use NCU\Sharing\ISharingRegistry;
use NCU\Sharing\Recipient\ShareRecipient;
use NCU\Sharing\ShareAccessContext;
use OC\Core\Sharing\Recipient\UserShareRecipientType;
use OC\Sharing\SharingBackend;
use OC\User\Database;
use OCA\Sharing\SharingBackend;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IDBConnection;
use OCP\IUser;

@ -19,7 +19,7 @@ use NCU\Sharing\ShareAccessContext;
use NCU\Sharing\ShareState;
use NCU\Sharing\Source\ShareSource;
use OC\Core\Sharing\Permission\ReshareSharePermissionType;
use OCA\Sharing\SharingBackend;
use OC\Sharing\SharingBackend;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\HintException;
use OCP\IDBConnection;

Loading…
Cancel
Save