@@ -36,26 +36,26 @@ |
||
| 36 | 36 | * Delete all expired "Open local editor" token |
| 37 | 37 | */ |
| 38 | 38 | class DeleteExpiredOpenLocalEditor extends TimedJob { |
| 39 | - protected OpenLocalEditorMapper $mapper; |
|
| 40 | - |
|
| 41 | - public function __construct( |
|
| 42 | - ITimeFactory $time, |
|
| 43 | - OpenLocalEditorMapper $mapper |
|
| 44 | - ) { |
|
| 45 | - parent::__construct($time); |
|
| 46 | - $this->mapper = $mapper; |
|
| 47 | - |
|
| 48 | - // Run every 12h |
|
| 49 | - $this->interval = 12 * 3600; |
|
| 50 | - $this->setTimeSensitivity(IJob::TIME_INSENSITIVE); |
|
| 51 | - } |
|
| 52 | - |
|
| 53 | - /** |
|
| 54 | - * Makes the background job do its work |
|
| 55 | - * |
|
| 56 | - * @param array $argument unused argument |
|
| 57 | - */ |
|
| 58 | - public function run($argument): void { |
|
| 59 | - $this->mapper->deleteExpiredTokens($this->time->getTime()); |
|
| 60 | - } |
|
| 39 | + protected OpenLocalEditorMapper $mapper; |
|
| 40 | + |
|
| 41 | + public function __construct( |
|
| 42 | + ITimeFactory $time, |
|
| 43 | + OpenLocalEditorMapper $mapper |
|
| 44 | + ) { |
|
| 45 | + parent::__construct($time); |
|
| 46 | + $this->mapper = $mapper; |
|
| 47 | + |
|
| 48 | + // Run every 12h |
|
| 49 | + $this->interval = 12 * 3600; |
|
| 50 | + $this->setTimeSensitivity(IJob::TIME_INSENSITIVE); |
|
| 51 | + } |
|
| 52 | + |
|
| 53 | + /** |
|
| 54 | + * Makes the background job do its work |
|
| 55 | + * |
|
| 56 | + * @param array $argument unused argument |
|
| 57 | + */ |
|
| 58 | + public function run($argument): void { |
|
| 59 | + $this->mapper->deleteExpiredTokens($this->time->getTime()); |
|
| 60 | + } |
|
| 61 | 61 | } |
@@ -33,37 +33,37 @@ |
||
| 33 | 33 | use OCP\Migration\SimpleMigrationStep; |
| 34 | 34 | |
| 35 | 35 | class Version12101Date20221011153334 extends SimpleMigrationStep { |
| 36 | - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
| 37 | - /** @var ISchemaWrapper $schema */ |
|
| 38 | - $schema = $schemaClosure(); |
|
| 36 | + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
|
| 37 | + /** @var ISchemaWrapper $schema */ |
|
| 38 | + $schema = $schemaClosure(); |
|
| 39 | 39 | |
| 40 | - $table = $schema->createTable('open_local_editor'); |
|
| 41 | - $table->addColumn('id',Types::BIGINT, [ |
|
| 42 | - 'autoincrement' => true, |
|
| 43 | - 'notnull' => true, |
|
| 44 | - 'length' => 20, |
|
| 45 | - 'unsigned' => true, |
|
| 46 | - ]); |
|
| 47 | - $table->addColumn('user_id', Types::STRING, [ |
|
| 48 | - 'notnull' => true, |
|
| 49 | - 'length' => 64, |
|
| 50 | - ]); |
|
| 51 | - $table->addColumn('path_hash', Types::STRING, [ |
|
| 52 | - 'notnull' => true, |
|
| 53 | - 'length' => 64, |
|
| 54 | - ]); |
|
| 55 | - $table->addColumn('expiration_time', Types::BIGINT, [ |
|
| 56 | - 'notnull' => true, |
|
| 57 | - 'unsigned' => true, |
|
| 58 | - ]); |
|
| 59 | - $table->addColumn('token', Types::STRING, [ |
|
| 60 | - 'notnull' => true, |
|
| 61 | - 'length' => 128, |
|
| 62 | - ]); |
|
| 40 | + $table = $schema->createTable('open_local_editor'); |
|
| 41 | + $table->addColumn('id',Types::BIGINT, [ |
|
| 42 | + 'autoincrement' => true, |
|
| 43 | + 'notnull' => true, |
|
| 44 | + 'length' => 20, |
|
| 45 | + 'unsigned' => true, |
|
| 46 | + ]); |
|
| 47 | + $table->addColumn('user_id', Types::STRING, [ |
|
| 48 | + 'notnull' => true, |
|
| 49 | + 'length' => 64, |
|
| 50 | + ]); |
|
| 51 | + $table->addColumn('path_hash', Types::STRING, [ |
|
| 52 | + 'notnull' => true, |
|
| 53 | + 'length' => 64, |
|
| 54 | + ]); |
|
| 55 | + $table->addColumn('expiration_time', Types::BIGINT, [ |
|
| 56 | + 'notnull' => true, |
|
| 57 | + 'unsigned' => true, |
|
| 58 | + ]); |
|
| 59 | + $table->addColumn('token', Types::STRING, [ |
|
| 60 | + 'notnull' => true, |
|
| 61 | + 'length' => 128, |
|
| 62 | + ]); |
|
| 63 | 63 | |
| 64 | - $table->setPrimaryKey(['id']); |
|
| 65 | - $table->addUniqueIndex(['user_id', 'path_hash', 'token'], 'openlocal_user_path_token'); |
|
| 64 | + $table->setPrimaryKey(['id']); |
|
| 65 | + $table->addUniqueIndex(['user_id', 'path_hash', 'token'], 'openlocal_user_path_token'); |
|
| 66 | 66 | |
| 67 | - return $schema; |
|
| 68 | - } |
|
| 67 | + return $schema; |
|
| 68 | + } |
|
| 69 | 69 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $schema = $schemaClosure(); |
| 39 | 39 | |
| 40 | 40 | $table = $schema->createTable('open_local_editor'); |
| 41 | - $table->addColumn('id',Types::BIGINT, [ |
|
| 41 | + $table->addColumn('id', Types::BIGINT, [ |
|
| 42 | 42 | 'autoincrement' => true, |
| 43 | 43 | 'notnull' => true, |
| 44 | 44 | 'length' => 20, |
@@ -39,100 +39,100 @@ |
||
| 39 | 39 | use Psr\Log\LoggerInterface; |
| 40 | 40 | |
| 41 | 41 | class OpenLocalEditorController extends OCSController { |
| 42 | - public const TOKEN_LENGTH = 128; |
|
| 43 | - public const TOKEN_DURATION = 600; // 10 Minutes |
|
| 44 | - public const TOKEN_RETRIES = 50; |
|
| 45 | - |
|
| 46 | - protected ITimeFactory $timeFactory; |
|
| 47 | - protected OpenLocalEditorMapper $mapper; |
|
| 48 | - protected ISecureRandom $secureRandom; |
|
| 49 | - protected LoggerInterface $logger; |
|
| 50 | - protected ?string $userId; |
|
| 51 | - |
|
| 52 | - public function __construct( |
|
| 53 | - string $appName, |
|
| 54 | - IRequest $request, |
|
| 55 | - ITimeFactory $timeFactory, |
|
| 56 | - OpenLocalEditorMapper $mapper, |
|
| 57 | - ISecureRandom $secureRandom, |
|
| 58 | - LoggerInterface $logger, |
|
| 59 | - ?string $userId |
|
| 60 | - ) { |
|
| 61 | - parent::__construct($appName, $request); |
|
| 62 | - |
|
| 63 | - $this->timeFactory = $timeFactory; |
|
| 64 | - $this->mapper = $mapper; |
|
| 65 | - $this->secureRandom = $secureRandom; |
|
| 66 | - $this->logger = $logger; |
|
| 67 | - $this->userId = $userId; |
|
| 68 | - } |
|
| 69 | - |
|
| 70 | - /** |
|
| 71 | - * @NoAdminRequired |
|
| 72 | - * @UserRateThrottle(limit=10, period=120) |
|
| 73 | - */ |
|
| 74 | - public function create(string $path): DataResponse { |
|
| 75 | - $pathHash = sha1($path); |
|
| 76 | - |
|
| 77 | - $entity = new OpenLocalEditor(); |
|
| 78 | - $entity->setUserId($this->userId); |
|
| 79 | - $entity->setPathHash($pathHash); |
|
| 80 | - $entity->setExpirationTime($this->timeFactory->getTime() + self::TOKEN_DURATION); // Expire in 10 minutes |
|
| 81 | - |
|
| 82 | - for ($i = 1; $i <= self::TOKEN_RETRIES; $i++) { |
|
| 83 | - $token = $this->secureRandom->generate(self::TOKEN_LENGTH, ISecureRandom::CHAR_ALPHANUMERIC); |
|
| 84 | - $entity->setToken($token); |
|
| 85 | - |
|
| 86 | - try { |
|
| 87 | - $this->mapper->insert($entity); |
|
| 88 | - |
|
| 89 | - return new DataResponse([ |
|
| 90 | - 'userId' => $this->userId, |
|
| 91 | - 'pathHash' => $pathHash, |
|
| 92 | - 'expirationTime' => $entity->getExpirationTime(), |
|
| 93 | - 'token' => $entity->getToken(), |
|
| 94 | - ]); |
|
| 95 | - } catch (Exception $e) { |
|
| 96 | - if ($e->getCode() !== Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) { |
|
| 97 | - // Only retry on unique constraint violation |
|
| 98 | - throw $e; |
|
| 99 | - } |
|
| 100 | - } |
|
| 101 | - } |
|
| 102 | - |
|
| 103 | - $this->logger->error('Giving up after ' . self::TOKEN_RETRIES . ' retries to generate a unique local editor token for path hash: ' . $pathHash); |
|
| 104 | - return new DataResponse([], Http::STATUS_INTERNAL_SERVER_ERROR); |
|
| 105 | - } |
|
| 106 | - |
|
| 107 | - /** |
|
| 108 | - * @NoAdminRequired |
|
| 109 | - * @BruteForceProtection(action=openLocalEditor) |
|
| 110 | - */ |
|
| 111 | - public function validate(string $path, string $token): DataResponse { |
|
| 112 | - $pathHash = sha1($path); |
|
| 113 | - |
|
| 114 | - try { |
|
| 115 | - $entity = $this->mapper->verifyToken($this->userId, $pathHash, $token); |
|
| 116 | - } catch (DoesNotExistException $e) { |
|
| 117 | - $response = new DataResponse([], Http::STATUS_NOT_FOUND); |
|
| 118 | - $response->throttle(['userId' => $this->userId, 'pathHash' => $pathHash]); |
|
| 119 | - return $response; |
|
| 120 | - } |
|
| 121 | - |
|
| 122 | - $this->mapper->delete($entity); |
|
| 123 | - |
|
| 124 | - if ($entity->getExpirationTime() <= $this->timeFactory->getTime()) { |
|
| 125 | - $response = new DataResponse([], Http::STATUS_NOT_FOUND); |
|
| 126 | - $response->throttle(['userId' => $this->userId, 'pathHash' => $pathHash]); |
|
| 127 | - return $response; |
|
| 128 | - } |
|
| 129 | - |
|
| 130 | - return new DataResponse([ |
|
| 131 | - 'userId' => $this->userId, |
|
| 132 | - 'pathHash' => $pathHash, |
|
| 133 | - 'expirationTime' => $entity->getExpirationTime(), |
|
| 134 | - 'token' => $entity->getToken(), |
|
| 135 | - ]); |
|
| 136 | - } |
|
| 42 | + public const TOKEN_LENGTH = 128; |
|
| 43 | + public const TOKEN_DURATION = 600; // 10 Minutes |
|
| 44 | + public const TOKEN_RETRIES = 50; |
|
| 45 | + |
|
| 46 | + protected ITimeFactory $timeFactory; |
|
| 47 | + protected OpenLocalEditorMapper $mapper; |
|
| 48 | + protected ISecureRandom $secureRandom; |
|
| 49 | + protected LoggerInterface $logger; |
|
| 50 | + protected ?string $userId; |
|
| 51 | + |
|
| 52 | + public function __construct( |
|
| 53 | + string $appName, |
|
| 54 | + IRequest $request, |
|
| 55 | + ITimeFactory $timeFactory, |
|
| 56 | + OpenLocalEditorMapper $mapper, |
|
| 57 | + ISecureRandom $secureRandom, |
|
| 58 | + LoggerInterface $logger, |
|
| 59 | + ?string $userId |
|
| 60 | + ) { |
|
| 61 | + parent::__construct($appName, $request); |
|
| 62 | + |
|
| 63 | + $this->timeFactory = $timeFactory; |
|
| 64 | + $this->mapper = $mapper; |
|
| 65 | + $this->secureRandom = $secureRandom; |
|
| 66 | + $this->logger = $logger; |
|
| 67 | + $this->userId = $userId; |
|
| 68 | + } |
|
| 69 | + |
|
| 70 | + /** |
|
| 71 | + * @NoAdminRequired |
|
| 72 | + * @UserRateThrottle(limit=10, period=120) |
|
| 73 | + */ |
|
| 74 | + public function create(string $path): DataResponse { |
|
| 75 | + $pathHash = sha1($path); |
|
| 76 | + |
|
| 77 | + $entity = new OpenLocalEditor(); |
|
| 78 | + $entity->setUserId($this->userId); |
|
| 79 | + $entity->setPathHash($pathHash); |
|
| 80 | + $entity->setExpirationTime($this->timeFactory->getTime() + self::TOKEN_DURATION); // Expire in 10 minutes |
|
| 81 | + |
|
| 82 | + for ($i = 1; $i <= self::TOKEN_RETRIES; $i++) { |
|
| 83 | + $token = $this->secureRandom->generate(self::TOKEN_LENGTH, ISecureRandom::CHAR_ALPHANUMERIC); |
|
| 84 | + $entity->setToken($token); |
|
| 85 | + |
|
| 86 | + try { |
|
| 87 | + $this->mapper->insert($entity); |
|
| 88 | + |
|
| 89 | + return new DataResponse([ |
|
| 90 | + 'userId' => $this->userId, |
|
| 91 | + 'pathHash' => $pathHash, |
|
| 92 | + 'expirationTime' => $entity->getExpirationTime(), |
|
| 93 | + 'token' => $entity->getToken(), |
|
| 94 | + ]); |
|
| 95 | + } catch (Exception $e) { |
|
| 96 | + if ($e->getCode() !== Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) { |
|
| 97 | + // Only retry on unique constraint violation |
|
| 98 | + throw $e; |
|
| 99 | + } |
|
| 100 | + } |
|
| 101 | + } |
|
| 102 | + |
|
| 103 | + $this->logger->error('Giving up after ' . self::TOKEN_RETRIES . ' retries to generate a unique local editor token for path hash: ' . $pathHash); |
|
| 104 | + return new DataResponse([], Http::STATUS_INTERNAL_SERVER_ERROR); |
|
| 105 | + } |
|
| 106 | + |
|
| 107 | + /** |
|
| 108 | + * @NoAdminRequired |
|
| 109 | + * @BruteForceProtection(action=openLocalEditor) |
|
| 110 | + */ |
|
| 111 | + public function validate(string $path, string $token): DataResponse { |
|
| 112 | + $pathHash = sha1($path); |
|
| 113 | + |
|
| 114 | + try { |
|
| 115 | + $entity = $this->mapper->verifyToken($this->userId, $pathHash, $token); |
|
| 116 | + } catch (DoesNotExistException $e) { |
|
| 117 | + $response = new DataResponse([], Http::STATUS_NOT_FOUND); |
|
| 118 | + $response->throttle(['userId' => $this->userId, 'pathHash' => $pathHash]); |
|
| 119 | + return $response; |
|
| 120 | + } |
|
| 121 | + |
|
| 122 | + $this->mapper->delete($entity); |
|
| 123 | + |
|
| 124 | + if ($entity->getExpirationTime() <= $this->timeFactory->getTime()) { |
|
| 125 | + $response = new DataResponse([], Http::STATUS_NOT_FOUND); |
|
| 126 | + $response->throttle(['userId' => $this->userId, 'pathHash' => $pathHash]); |
|
| 127 | + return $response; |
|
| 128 | + } |
|
| 129 | + |
|
| 130 | + return new DataResponse([ |
|
| 131 | + 'userId' => $this->userId, |
|
| 132 | + 'pathHash' => $pathHash, |
|
| 133 | + 'expirationTime' => $entity->getExpirationTime(), |
|
| 134 | + 'token' => $entity->getToken(), |
|
| 135 | + ]); |
|
| 136 | + } |
|
| 137 | 137 | |
| 138 | 138 | } |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | } |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | - $this->logger->error('Giving up after ' . self::TOKEN_RETRIES . ' retries to generate a unique local editor token for path hash: ' . $pathHash); |
|
| 103 | + $this->logger->error('Giving up after '.self::TOKEN_RETRIES.' retries to generate a unique local editor token for path hash: '.$pathHash); |
|
| 104 | 104 | return new DataResponse([], Http::STATUS_INTERNAL_SERVER_ERROR); |
| 105 | 105 | } |
| 106 | 106 | |
@@ -39,22 +39,22 @@ |
||
| 39 | 39 | * @method string getToken() |
| 40 | 40 | */ |
| 41 | 41 | class OpenLocalEditor extends Entity { |
| 42 | - /** @var string */ |
|
| 43 | - protected $userId; |
|
| 42 | + /** @var string */ |
|
| 43 | + protected $userId; |
|
| 44 | 44 | |
| 45 | - /** @var string */ |
|
| 46 | - protected $pathHash; |
|
| 45 | + /** @var string */ |
|
| 46 | + protected $pathHash; |
|
| 47 | 47 | |
| 48 | - /** @var int */ |
|
| 49 | - protected $expirationTime; |
|
| 48 | + /** @var int */ |
|
| 49 | + protected $expirationTime; |
|
| 50 | 50 | |
| 51 | - /** @var string */ |
|
| 52 | - protected $token; |
|
| 51 | + /** @var string */ |
|
| 52 | + protected $token; |
|
| 53 | 53 | |
| 54 | - public function __construct() { |
|
| 55 | - $this->addType('userId', 'string'); |
|
| 56 | - $this->addType('pathHash', 'string'); |
|
| 57 | - $this->addType('expirationTime', 'integer'); |
|
| 58 | - $this->addType('token', 'string'); |
|
| 59 | - } |
|
| 54 | + public function __construct() { |
|
| 55 | + $this->addType('userId', 'string'); |
|
| 56 | + $this->addType('pathHash', 'string'); |
|
| 57 | + $this->addType('expirationTime', 'integer'); |
|
| 58 | + $this->addType('token', 'string'); |
|
| 59 | + } |
|
| 60 | 60 | } |
@@ -33,33 +33,33 @@ |
||
| 33 | 33 | use OCP\IDBConnection; |
| 34 | 34 | |
| 35 | 35 | class OpenLocalEditorMapper extends QBMapper { |
| 36 | - public function __construct(IDBConnection $db) { |
|
| 37 | - parent::__construct($db, 'open_local_editor', OpenLocalEditor::class); |
|
| 38 | - } |
|
| 36 | + public function __construct(IDBConnection $db) { |
|
| 37 | + parent::__construct($db, 'open_local_editor', OpenLocalEditor::class); |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * @throws DoesNotExistException |
|
| 42 | - * @throws MultipleObjectsReturnedException |
|
| 43 | - * @throws Exception |
|
| 44 | - */ |
|
| 45 | - public function verifyToken(string $userId, string $pathHash, string $token): OpenLocalEditor { |
|
| 46 | - $qb = $this->db->getQueryBuilder(); |
|
| 40 | + /** |
|
| 41 | + * @throws DoesNotExistException |
|
| 42 | + * @throws MultipleObjectsReturnedException |
|
| 43 | + * @throws Exception |
|
| 44 | + */ |
|
| 45 | + public function verifyToken(string $userId, string $pathHash, string $token): OpenLocalEditor { |
|
| 46 | + $qb = $this->db->getQueryBuilder(); |
|
| 47 | 47 | |
| 48 | - $qb->select('*') |
|
| 49 | - ->from($this->getTableName()) |
|
| 50 | - ->where($qb->expr()->eq('user_id', $qb->createNamedParameter($userId))) |
|
| 51 | - ->andWhere($qb->expr()->eq('path_hash', $qb->createNamedParameter($pathHash))) |
|
| 52 | - ->andWhere($qb->expr()->eq('token', $qb->createNamedParameter($token))); |
|
| 48 | + $qb->select('*') |
|
| 49 | + ->from($this->getTableName()) |
|
| 50 | + ->where($qb->expr()->eq('user_id', $qb->createNamedParameter($userId))) |
|
| 51 | + ->andWhere($qb->expr()->eq('path_hash', $qb->createNamedParameter($pathHash))) |
|
| 52 | + ->andWhere($qb->expr()->eq('token', $qb->createNamedParameter($token))); |
|
| 53 | 53 | |
| 54 | - return $this->findEntity($qb); |
|
| 55 | - } |
|
| 54 | + return $this->findEntity($qb); |
|
| 55 | + } |
|
| 56 | 56 | |
| 57 | - public function deleteExpiredTokens(int $time): void { |
|
| 58 | - $qb = $this->db->getQueryBuilder(); |
|
| 57 | + public function deleteExpiredTokens(int $time): void { |
|
| 58 | + $qb = $this->db->getQueryBuilder(); |
|
| 59 | 59 | |
| 60 | - $qb->delete($this->getTableName()) |
|
| 61 | - ->where($qb->expr()->lt('expiration_time', $qb->createNamedParameter($time))); |
|
| 60 | + $qb->delete($this->getTableName()) |
|
| 61 | + ->where($qb->expr()->lt('expiration_time', $qb->createNamedParameter($time))); |
|
| 62 | 62 | |
| 63 | - $qb->executeStatement(); |
|
| 64 | - } |
|
| 63 | + $qb->executeStatement(); |
|
| 64 | + } |
|
| 65 | 65 | } |
@@ -6,79 +6,79 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitFiles |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\Files\\' => 10, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\Files\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
|
| 25 | - 'OCA\\Files\\Activity\\FavoriteProvider' => __DIR__ . '/..' . '/../lib/Activity/FavoriteProvider.php', |
|
| 26 | - 'OCA\\Files\\Activity\\Filter\\Favorites' => __DIR__ . '/..' . '/../lib/Activity/Filter/Favorites.php', |
|
| 27 | - 'OCA\\Files\\Activity\\Filter\\FileChanges' => __DIR__ . '/..' . '/../lib/Activity/Filter/FileChanges.php', |
|
| 28 | - 'OCA\\Files\\Activity\\Helper' => __DIR__ . '/..' . '/../lib/Activity/Helper.php', |
|
| 29 | - 'OCA\\Files\\Activity\\Provider' => __DIR__ . '/..' . '/../lib/Activity/Provider.php', |
|
| 30 | - 'OCA\\Files\\Activity\\Settings\\FavoriteAction' => __DIR__ . '/..' . '/../lib/Activity/Settings/FavoriteAction.php', |
|
| 31 | - 'OCA\\Files\\Activity\\Settings\\FileActivitySettings' => __DIR__ . '/..' . '/../lib/Activity/Settings/FileActivitySettings.php', |
|
| 32 | - 'OCA\\Files\\Activity\\Settings\\FileChanged' => __DIR__ . '/..' . '/../lib/Activity/Settings/FileChanged.php', |
|
| 33 | - 'OCA\\Files\\Activity\\Settings\\FileFavoriteChanged' => __DIR__ . '/..' . '/../lib/Activity/Settings/FileFavoriteChanged.php', |
|
| 34 | - 'OCA\\Files\\App' => __DIR__ . '/..' . '/../lib/App.php', |
|
| 35 | - 'OCA\\Files\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 36 | - 'OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens' => __DIR__ . '/..' . '/../lib/BackgroundJob/CleanupDirectEditingTokens.php', |
|
| 37 | - 'OCA\\Files\\BackgroundJob\\CleanupFileLocks' => __DIR__ . '/..' . '/../lib/BackgroundJob/CleanupFileLocks.php', |
|
| 38 | - 'OCA\\Files\\BackgroundJob\\DeleteExpiredOpenLocalEditor' => __DIR__ . '/..' . '/../lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php', |
|
| 39 | - 'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems' => __DIR__ . '/..' . '/../lib/BackgroundJob/DeleteOrphanedItems.php', |
|
| 40 | - 'OCA\\Files\\BackgroundJob\\ScanFiles' => __DIR__ . '/..' . '/../lib/BackgroundJob/ScanFiles.php', |
|
| 41 | - 'OCA\\Files\\BackgroundJob\\TransferOwnership' => __DIR__ . '/..' . '/../lib/BackgroundJob/TransferOwnership.php', |
|
| 42 | - 'OCA\\Files\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php', |
|
| 43 | - 'OCA\\Files\\Collaboration\\Resources\\Listener' => __DIR__ . '/..' . '/../lib/Collaboration/Resources/Listener.php', |
|
| 44 | - 'OCA\\Files\\Collaboration\\Resources\\ResourceProvider' => __DIR__ . '/..' . '/../lib/Collaboration/Resources/ResourceProvider.php', |
|
| 45 | - 'OCA\\Files\\Command\\DeleteOrphanedFiles' => __DIR__ . '/..' . '/../lib/Command/DeleteOrphanedFiles.php', |
|
| 46 | - 'OCA\\Files\\Command\\RepairTree' => __DIR__ . '/..' . '/../lib/Command/RepairTree.php', |
|
| 47 | - 'OCA\\Files\\Command\\Scan' => __DIR__ . '/..' . '/../lib/Command/Scan.php', |
|
| 48 | - 'OCA\\Files\\Command\\ScanAppData' => __DIR__ . '/..' . '/../lib/Command/ScanAppData.php', |
|
| 49 | - 'OCA\\Files\\Command\\TransferOwnership' => __DIR__ . '/..' . '/../lib/Command/TransferOwnership.php', |
|
| 50 | - 'OCA\\Files\\Controller\\AjaxController' => __DIR__ . '/..' . '/../lib/Controller/AjaxController.php', |
|
| 51 | - 'OCA\\Files\\Controller\\ApiController' => __DIR__ . '/..' . '/../lib/Controller/ApiController.php', |
|
| 52 | - 'OCA\\Files\\Controller\\DirectEditingController' => __DIR__ . '/..' . '/../lib/Controller/DirectEditingController.php', |
|
| 53 | - 'OCA\\Files\\Controller\\DirectEditingViewController' => __DIR__ . '/..' . '/../lib/Controller/DirectEditingViewController.php', |
|
| 54 | - 'OCA\\Files\\Controller\\OpenLocalEditorController' => __DIR__ . '/..' . '/../lib/Controller/OpenLocalEditorController.php', |
|
| 55 | - 'OCA\\Files\\Controller\\TemplateController' => __DIR__ . '/..' . '/../lib/Controller/TemplateController.php', |
|
| 56 | - 'OCA\\Files\\Controller\\TransferOwnershipController' => __DIR__ . '/..' . '/../lib/Controller/TransferOwnershipController.php', |
|
| 57 | - 'OCA\\Files\\Controller\\ViewController' => __DIR__ . '/..' . '/../lib/Controller/ViewController.php', |
|
| 58 | - 'OCA\\Files\\Db\\OpenLocalEditor' => __DIR__ . '/..' . '/../lib/Db/OpenLocalEditor.php', |
|
| 59 | - 'OCA\\Files\\Db\\OpenLocalEditorMapper' => __DIR__ . '/..' . '/../lib/Db/OpenLocalEditorMapper.php', |
|
| 60 | - 'OCA\\Files\\Db\\TransferOwnership' => __DIR__ . '/..' . '/../lib/Db/TransferOwnership.php', |
|
| 61 | - 'OCA\\Files\\Db\\TransferOwnershipMapper' => __DIR__ . '/..' . '/../lib/Db/TransferOwnershipMapper.php', |
|
| 62 | - 'OCA\\Files\\DirectEditingCapabilities' => __DIR__ . '/..' . '/../lib/DirectEditingCapabilities.php', |
|
| 63 | - 'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => __DIR__ . '/..' . '/../lib/Event/LoadAdditionalScriptsEvent.php', |
|
| 64 | - 'OCA\\Files\\Event\\LoadSidebar' => __DIR__ . '/..' . '/../lib/Event/LoadSidebar.php', |
|
| 65 | - 'OCA\\Files\\Exception\\TransferOwnershipException' => __DIR__ . '/..' . '/../lib/Exception/TransferOwnershipException.php', |
|
| 66 | - 'OCA\\Files\\Helper' => __DIR__ . '/..' . '/../lib/Helper.php', |
|
| 67 | - 'OCA\\Files\\Listener\\LegacyLoadAdditionalScriptsAdapter' => __DIR__ . '/..' . '/../lib/Listener/LegacyLoadAdditionalScriptsAdapter.php', |
|
| 68 | - 'OCA\\Files\\Listener\\LoadSidebarListener' => __DIR__ . '/..' . '/../lib/Listener/LoadSidebarListener.php', |
|
| 69 | - 'OCA\\Files\\Migration\\Version11301Date20191205150729' => __DIR__ . '/..' . '/../lib/Migration/Version11301Date20191205150729.php', |
|
| 70 | - 'OCA\\Files\\Migration\\Version12101Date20221011153334' => __DIR__ . '/..' . '/../lib/Migration/Version12101Date20221011153334.php', |
|
| 71 | - 'OCA\\Files\\Notification\\Notifier' => __DIR__ . '/..' . '/../lib/Notification/Notifier.php', |
|
| 72 | - 'OCA\\Files\\Search\\FilesSearchProvider' => __DIR__ . '/..' . '/../lib/Search/FilesSearchProvider.php', |
|
| 73 | - 'OCA\\Files\\Service\\DirectEditingService' => __DIR__ . '/..' . '/../lib/Service/DirectEditingService.php', |
|
| 74 | - 'OCA\\Files\\Service\\OwnershipTransferService' => __DIR__ . '/..' . '/../lib/Service/OwnershipTransferService.php', |
|
| 75 | - 'OCA\\Files\\Service\\TagService' => __DIR__ . '/..' . '/../lib/Service/TagService.php', |
|
| 76 | - 'OCA\\Files\\Settings\\PersonalSettings' => __DIR__ . '/..' . '/../lib/Settings/PersonalSettings.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
| 25 | + 'OCA\\Files\\Activity\\FavoriteProvider' => __DIR__.'/..'.'/../lib/Activity/FavoriteProvider.php', |
|
| 26 | + 'OCA\\Files\\Activity\\Filter\\Favorites' => __DIR__.'/..'.'/../lib/Activity/Filter/Favorites.php', |
|
| 27 | + 'OCA\\Files\\Activity\\Filter\\FileChanges' => __DIR__.'/..'.'/../lib/Activity/Filter/FileChanges.php', |
|
| 28 | + 'OCA\\Files\\Activity\\Helper' => __DIR__.'/..'.'/../lib/Activity/Helper.php', |
|
| 29 | + 'OCA\\Files\\Activity\\Provider' => __DIR__.'/..'.'/../lib/Activity/Provider.php', |
|
| 30 | + 'OCA\\Files\\Activity\\Settings\\FavoriteAction' => __DIR__.'/..'.'/../lib/Activity/Settings/FavoriteAction.php', |
|
| 31 | + 'OCA\\Files\\Activity\\Settings\\FileActivitySettings' => __DIR__.'/..'.'/../lib/Activity/Settings/FileActivitySettings.php', |
|
| 32 | + 'OCA\\Files\\Activity\\Settings\\FileChanged' => __DIR__.'/..'.'/../lib/Activity/Settings/FileChanged.php', |
|
| 33 | + 'OCA\\Files\\Activity\\Settings\\FileFavoriteChanged' => __DIR__.'/..'.'/../lib/Activity/Settings/FileFavoriteChanged.php', |
|
| 34 | + 'OCA\\Files\\App' => __DIR__.'/..'.'/../lib/App.php', |
|
| 35 | + 'OCA\\Files\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 36 | + 'OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens' => __DIR__.'/..'.'/../lib/BackgroundJob/CleanupDirectEditingTokens.php', |
|
| 37 | + 'OCA\\Files\\BackgroundJob\\CleanupFileLocks' => __DIR__.'/..'.'/../lib/BackgroundJob/CleanupFileLocks.php', |
|
| 38 | + 'OCA\\Files\\BackgroundJob\\DeleteExpiredOpenLocalEditor' => __DIR__.'/..'.'/../lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php', |
|
| 39 | + 'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems' => __DIR__.'/..'.'/../lib/BackgroundJob/DeleteOrphanedItems.php', |
|
| 40 | + 'OCA\\Files\\BackgroundJob\\ScanFiles' => __DIR__.'/..'.'/../lib/BackgroundJob/ScanFiles.php', |
|
| 41 | + 'OCA\\Files\\BackgroundJob\\TransferOwnership' => __DIR__.'/..'.'/../lib/BackgroundJob/TransferOwnership.php', |
|
| 42 | + 'OCA\\Files\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php', |
|
| 43 | + 'OCA\\Files\\Collaboration\\Resources\\Listener' => __DIR__.'/..'.'/../lib/Collaboration/Resources/Listener.php', |
|
| 44 | + 'OCA\\Files\\Collaboration\\Resources\\ResourceProvider' => __DIR__.'/..'.'/../lib/Collaboration/Resources/ResourceProvider.php', |
|
| 45 | + 'OCA\\Files\\Command\\DeleteOrphanedFiles' => __DIR__.'/..'.'/../lib/Command/DeleteOrphanedFiles.php', |
|
| 46 | + 'OCA\\Files\\Command\\RepairTree' => __DIR__.'/..'.'/../lib/Command/RepairTree.php', |
|
| 47 | + 'OCA\\Files\\Command\\Scan' => __DIR__.'/..'.'/../lib/Command/Scan.php', |
|
| 48 | + 'OCA\\Files\\Command\\ScanAppData' => __DIR__.'/..'.'/../lib/Command/ScanAppData.php', |
|
| 49 | + 'OCA\\Files\\Command\\TransferOwnership' => __DIR__.'/..'.'/../lib/Command/TransferOwnership.php', |
|
| 50 | + 'OCA\\Files\\Controller\\AjaxController' => __DIR__.'/..'.'/../lib/Controller/AjaxController.php', |
|
| 51 | + 'OCA\\Files\\Controller\\ApiController' => __DIR__.'/..'.'/../lib/Controller/ApiController.php', |
|
| 52 | + 'OCA\\Files\\Controller\\DirectEditingController' => __DIR__.'/..'.'/../lib/Controller/DirectEditingController.php', |
|
| 53 | + 'OCA\\Files\\Controller\\DirectEditingViewController' => __DIR__.'/..'.'/../lib/Controller/DirectEditingViewController.php', |
|
| 54 | + 'OCA\\Files\\Controller\\OpenLocalEditorController' => __DIR__.'/..'.'/../lib/Controller/OpenLocalEditorController.php', |
|
| 55 | + 'OCA\\Files\\Controller\\TemplateController' => __DIR__.'/..'.'/../lib/Controller/TemplateController.php', |
|
| 56 | + 'OCA\\Files\\Controller\\TransferOwnershipController' => __DIR__.'/..'.'/../lib/Controller/TransferOwnershipController.php', |
|
| 57 | + 'OCA\\Files\\Controller\\ViewController' => __DIR__.'/..'.'/../lib/Controller/ViewController.php', |
|
| 58 | + 'OCA\\Files\\Db\\OpenLocalEditor' => __DIR__.'/..'.'/../lib/Db/OpenLocalEditor.php', |
|
| 59 | + 'OCA\\Files\\Db\\OpenLocalEditorMapper' => __DIR__.'/..'.'/../lib/Db/OpenLocalEditorMapper.php', |
|
| 60 | + 'OCA\\Files\\Db\\TransferOwnership' => __DIR__.'/..'.'/../lib/Db/TransferOwnership.php', |
|
| 61 | + 'OCA\\Files\\Db\\TransferOwnershipMapper' => __DIR__.'/..'.'/../lib/Db/TransferOwnershipMapper.php', |
|
| 62 | + 'OCA\\Files\\DirectEditingCapabilities' => __DIR__.'/..'.'/../lib/DirectEditingCapabilities.php', |
|
| 63 | + 'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => __DIR__.'/..'.'/../lib/Event/LoadAdditionalScriptsEvent.php', |
|
| 64 | + 'OCA\\Files\\Event\\LoadSidebar' => __DIR__.'/..'.'/../lib/Event/LoadSidebar.php', |
|
| 65 | + 'OCA\\Files\\Exception\\TransferOwnershipException' => __DIR__.'/..'.'/../lib/Exception/TransferOwnershipException.php', |
|
| 66 | + 'OCA\\Files\\Helper' => __DIR__.'/..'.'/../lib/Helper.php', |
|
| 67 | + 'OCA\\Files\\Listener\\LegacyLoadAdditionalScriptsAdapter' => __DIR__.'/..'.'/../lib/Listener/LegacyLoadAdditionalScriptsAdapter.php', |
|
| 68 | + 'OCA\\Files\\Listener\\LoadSidebarListener' => __DIR__.'/..'.'/../lib/Listener/LoadSidebarListener.php', |
|
| 69 | + 'OCA\\Files\\Migration\\Version11301Date20191205150729' => __DIR__.'/..'.'/../lib/Migration/Version11301Date20191205150729.php', |
|
| 70 | + 'OCA\\Files\\Migration\\Version12101Date20221011153334' => __DIR__.'/..'.'/../lib/Migration/Version12101Date20221011153334.php', |
|
| 71 | + 'OCA\\Files\\Notification\\Notifier' => __DIR__.'/..'.'/../lib/Notification/Notifier.php', |
|
| 72 | + 'OCA\\Files\\Search\\FilesSearchProvider' => __DIR__.'/..'.'/../lib/Search/FilesSearchProvider.php', |
|
| 73 | + 'OCA\\Files\\Service\\DirectEditingService' => __DIR__.'/..'.'/../lib/Service/DirectEditingService.php', |
|
| 74 | + 'OCA\\Files\\Service\\OwnershipTransferService' => __DIR__.'/..'.'/../lib/Service/OwnershipTransferService.php', |
|
| 75 | + 'OCA\\Files\\Service\\TagService' => __DIR__.'/..'.'/../lib/Service/TagService.php', |
|
| 76 | + 'OCA\\Files\\Settings\\PersonalSettings' => __DIR__.'/..'.'/../lib/Settings/PersonalSettings.php', |
|
| 77 | 77 | ); |
| 78 | 78 | |
| 79 | 79 | public static function getInitializer(ClassLoader $loader) |
| 80 | 80 | { |
| 81 | - return \Closure::bind(function () use ($loader) { |
|
| 81 | + return \Closure::bind(function() use ($loader) { |
|
| 82 | 82 | $loader->prefixLengthsPsr4 = ComposerStaticInitFiles::$prefixLengthsPsr4; |
| 83 | 83 | $loader->prefixDirsPsr4 = ComposerStaticInitFiles::$prefixDirsPsr4; |
| 84 | 84 | $loader->classMap = ComposerStaticInitFiles::$classMap; |
@@ -6,57 +6,57 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
| 10 | - 'OCA\\Files\\Activity\\FavoriteProvider' => $baseDir . '/../lib/Activity/FavoriteProvider.php', |
|
| 11 | - 'OCA\\Files\\Activity\\Filter\\Favorites' => $baseDir . '/../lib/Activity/Filter/Favorites.php', |
|
| 12 | - 'OCA\\Files\\Activity\\Filter\\FileChanges' => $baseDir . '/../lib/Activity/Filter/FileChanges.php', |
|
| 13 | - 'OCA\\Files\\Activity\\Helper' => $baseDir . '/../lib/Activity/Helper.php', |
|
| 14 | - 'OCA\\Files\\Activity\\Provider' => $baseDir . '/../lib/Activity/Provider.php', |
|
| 15 | - 'OCA\\Files\\Activity\\Settings\\FavoriteAction' => $baseDir . '/../lib/Activity/Settings/FavoriteAction.php', |
|
| 16 | - 'OCA\\Files\\Activity\\Settings\\FileActivitySettings' => $baseDir . '/../lib/Activity/Settings/FileActivitySettings.php', |
|
| 17 | - 'OCA\\Files\\Activity\\Settings\\FileChanged' => $baseDir . '/../lib/Activity/Settings/FileChanged.php', |
|
| 18 | - 'OCA\\Files\\Activity\\Settings\\FileFavoriteChanged' => $baseDir . '/../lib/Activity/Settings/FileFavoriteChanged.php', |
|
| 19 | - 'OCA\\Files\\App' => $baseDir . '/../lib/App.php', |
|
| 20 | - 'OCA\\Files\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 21 | - 'OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens' => $baseDir . '/../lib/BackgroundJob/CleanupDirectEditingTokens.php', |
|
| 22 | - 'OCA\\Files\\BackgroundJob\\CleanupFileLocks' => $baseDir . '/../lib/BackgroundJob/CleanupFileLocks.php', |
|
| 23 | - 'OCA\\Files\\BackgroundJob\\DeleteExpiredOpenLocalEditor' => $baseDir . '/../lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php', |
|
| 24 | - 'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems' => $baseDir . '/../lib/BackgroundJob/DeleteOrphanedItems.php', |
|
| 25 | - 'OCA\\Files\\BackgroundJob\\ScanFiles' => $baseDir . '/../lib/BackgroundJob/ScanFiles.php', |
|
| 26 | - 'OCA\\Files\\BackgroundJob\\TransferOwnership' => $baseDir . '/../lib/BackgroundJob/TransferOwnership.php', |
|
| 27 | - 'OCA\\Files\\Capabilities' => $baseDir . '/../lib/Capabilities.php', |
|
| 28 | - 'OCA\\Files\\Collaboration\\Resources\\Listener' => $baseDir . '/../lib/Collaboration/Resources/Listener.php', |
|
| 29 | - 'OCA\\Files\\Collaboration\\Resources\\ResourceProvider' => $baseDir . '/../lib/Collaboration/Resources/ResourceProvider.php', |
|
| 30 | - 'OCA\\Files\\Command\\DeleteOrphanedFiles' => $baseDir . '/../lib/Command/DeleteOrphanedFiles.php', |
|
| 31 | - 'OCA\\Files\\Command\\RepairTree' => $baseDir . '/../lib/Command/RepairTree.php', |
|
| 32 | - 'OCA\\Files\\Command\\Scan' => $baseDir . '/../lib/Command/Scan.php', |
|
| 33 | - 'OCA\\Files\\Command\\ScanAppData' => $baseDir . '/../lib/Command/ScanAppData.php', |
|
| 34 | - 'OCA\\Files\\Command\\TransferOwnership' => $baseDir . '/../lib/Command/TransferOwnership.php', |
|
| 35 | - 'OCA\\Files\\Controller\\AjaxController' => $baseDir . '/../lib/Controller/AjaxController.php', |
|
| 36 | - 'OCA\\Files\\Controller\\ApiController' => $baseDir . '/../lib/Controller/ApiController.php', |
|
| 37 | - 'OCA\\Files\\Controller\\DirectEditingController' => $baseDir . '/../lib/Controller/DirectEditingController.php', |
|
| 38 | - 'OCA\\Files\\Controller\\DirectEditingViewController' => $baseDir . '/../lib/Controller/DirectEditingViewController.php', |
|
| 39 | - 'OCA\\Files\\Controller\\OpenLocalEditorController' => $baseDir . '/../lib/Controller/OpenLocalEditorController.php', |
|
| 40 | - 'OCA\\Files\\Controller\\TemplateController' => $baseDir . '/../lib/Controller/TemplateController.php', |
|
| 41 | - 'OCA\\Files\\Controller\\TransferOwnershipController' => $baseDir . '/../lib/Controller/TransferOwnershipController.php', |
|
| 42 | - 'OCA\\Files\\Controller\\ViewController' => $baseDir . '/../lib/Controller/ViewController.php', |
|
| 43 | - 'OCA\\Files\\Db\\OpenLocalEditor' => $baseDir . '/../lib/Db/OpenLocalEditor.php', |
|
| 44 | - 'OCA\\Files\\Db\\OpenLocalEditorMapper' => $baseDir . '/../lib/Db/OpenLocalEditorMapper.php', |
|
| 45 | - 'OCA\\Files\\Db\\TransferOwnership' => $baseDir . '/../lib/Db/TransferOwnership.php', |
|
| 46 | - 'OCA\\Files\\Db\\TransferOwnershipMapper' => $baseDir . '/../lib/Db/TransferOwnershipMapper.php', |
|
| 47 | - 'OCA\\Files\\DirectEditingCapabilities' => $baseDir . '/../lib/DirectEditingCapabilities.php', |
|
| 48 | - 'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => $baseDir . '/../lib/Event/LoadAdditionalScriptsEvent.php', |
|
| 49 | - 'OCA\\Files\\Event\\LoadSidebar' => $baseDir . '/../lib/Event/LoadSidebar.php', |
|
| 50 | - 'OCA\\Files\\Exception\\TransferOwnershipException' => $baseDir . '/../lib/Exception/TransferOwnershipException.php', |
|
| 51 | - 'OCA\\Files\\Helper' => $baseDir . '/../lib/Helper.php', |
|
| 52 | - 'OCA\\Files\\Listener\\LegacyLoadAdditionalScriptsAdapter' => $baseDir . '/../lib/Listener/LegacyLoadAdditionalScriptsAdapter.php', |
|
| 53 | - 'OCA\\Files\\Listener\\LoadSidebarListener' => $baseDir . '/../lib/Listener/LoadSidebarListener.php', |
|
| 54 | - 'OCA\\Files\\Migration\\Version11301Date20191205150729' => $baseDir . '/../lib/Migration/Version11301Date20191205150729.php', |
|
| 55 | - 'OCA\\Files\\Migration\\Version12101Date20221011153334' => $baseDir . '/../lib/Migration/Version12101Date20221011153334.php', |
|
| 56 | - 'OCA\\Files\\Notification\\Notifier' => $baseDir . '/../lib/Notification/Notifier.php', |
|
| 57 | - 'OCA\\Files\\Search\\FilesSearchProvider' => $baseDir . '/../lib/Search/FilesSearchProvider.php', |
|
| 58 | - 'OCA\\Files\\Service\\DirectEditingService' => $baseDir . '/../lib/Service/DirectEditingService.php', |
|
| 59 | - 'OCA\\Files\\Service\\OwnershipTransferService' => $baseDir . '/../lib/Service/OwnershipTransferService.php', |
|
| 60 | - 'OCA\\Files\\Service\\TagService' => $baseDir . '/../lib/Service/TagService.php', |
|
| 61 | - 'OCA\\Files\\Settings\\PersonalSettings' => $baseDir . '/../lib/Settings/PersonalSettings.php', |
|
| 9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
| 10 | + 'OCA\\Files\\Activity\\FavoriteProvider' => $baseDir.'/../lib/Activity/FavoriteProvider.php', |
|
| 11 | + 'OCA\\Files\\Activity\\Filter\\Favorites' => $baseDir.'/../lib/Activity/Filter/Favorites.php', |
|
| 12 | + 'OCA\\Files\\Activity\\Filter\\FileChanges' => $baseDir.'/../lib/Activity/Filter/FileChanges.php', |
|
| 13 | + 'OCA\\Files\\Activity\\Helper' => $baseDir.'/../lib/Activity/Helper.php', |
|
| 14 | + 'OCA\\Files\\Activity\\Provider' => $baseDir.'/../lib/Activity/Provider.php', |
|
| 15 | + 'OCA\\Files\\Activity\\Settings\\FavoriteAction' => $baseDir.'/../lib/Activity/Settings/FavoriteAction.php', |
|
| 16 | + 'OCA\\Files\\Activity\\Settings\\FileActivitySettings' => $baseDir.'/../lib/Activity/Settings/FileActivitySettings.php', |
|
| 17 | + 'OCA\\Files\\Activity\\Settings\\FileChanged' => $baseDir.'/../lib/Activity/Settings/FileChanged.php', |
|
| 18 | + 'OCA\\Files\\Activity\\Settings\\FileFavoriteChanged' => $baseDir.'/../lib/Activity/Settings/FileFavoriteChanged.php', |
|
| 19 | + 'OCA\\Files\\App' => $baseDir.'/../lib/App.php', |
|
| 20 | + 'OCA\\Files\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 21 | + 'OCA\\Files\\BackgroundJob\\CleanupDirectEditingTokens' => $baseDir.'/../lib/BackgroundJob/CleanupDirectEditingTokens.php', |
|
| 22 | + 'OCA\\Files\\BackgroundJob\\CleanupFileLocks' => $baseDir.'/../lib/BackgroundJob/CleanupFileLocks.php', |
|
| 23 | + 'OCA\\Files\\BackgroundJob\\DeleteExpiredOpenLocalEditor' => $baseDir.'/../lib/BackgroundJob/DeleteExpiredOpenLocalEditor.php', |
|
| 24 | + 'OCA\\Files\\BackgroundJob\\DeleteOrphanedItems' => $baseDir.'/../lib/BackgroundJob/DeleteOrphanedItems.php', |
|
| 25 | + 'OCA\\Files\\BackgroundJob\\ScanFiles' => $baseDir.'/../lib/BackgroundJob/ScanFiles.php', |
|
| 26 | + 'OCA\\Files\\BackgroundJob\\TransferOwnership' => $baseDir.'/../lib/BackgroundJob/TransferOwnership.php', |
|
| 27 | + 'OCA\\Files\\Capabilities' => $baseDir.'/../lib/Capabilities.php', |
|
| 28 | + 'OCA\\Files\\Collaboration\\Resources\\Listener' => $baseDir.'/../lib/Collaboration/Resources/Listener.php', |
|
| 29 | + 'OCA\\Files\\Collaboration\\Resources\\ResourceProvider' => $baseDir.'/../lib/Collaboration/Resources/ResourceProvider.php', |
|
| 30 | + 'OCA\\Files\\Command\\DeleteOrphanedFiles' => $baseDir.'/../lib/Command/DeleteOrphanedFiles.php', |
|
| 31 | + 'OCA\\Files\\Command\\RepairTree' => $baseDir.'/../lib/Command/RepairTree.php', |
|
| 32 | + 'OCA\\Files\\Command\\Scan' => $baseDir.'/../lib/Command/Scan.php', |
|
| 33 | + 'OCA\\Files\\Command\\ScanAppData' => $baseDir.'/../lib/Command/ScanAppData.php', |
|
| 34 | + 'OCA\\Files\\Command\\TransferOwnership' => $baseDir.'/../lib/Command/TransferOwnership.php', |
|
| 35 | + 'OCA\\Files\\Controller\\AjaxController' => $baseDir.'/../lib/Controller/AjaxController.php', |
|
| 36 | + 'OCA\\Files\\Controller\\ApiController' => $baseDir.'/../lib/Controller/ApiController.php', |
|
| 37 | + 'OCA\\Files\\Controller\\DirectEditingController' => $baseDir.'/../lib/Controller/DirectEditingController.php', |
|
| 38 | + 'OCA\\Files\\Controller\\DirectEditingViewController' => $baseDir.'/../lib/Controller/DirectEditingViewController.php', |
|
| 39 | + 'OCA\\Files\\Controller\\OpenLocalEditorController' => $baseDir.'/../lib/Controller/OpenLocalEditorController.php', |
|
| 40 | + 'OCA\\Files\\Controller\\TemplateController' => $baseDir.'/../lib/Controller/TemplateController.php', |
|
| 41 | + 'OCA\\Files\\Controller\\TransferOwnershipController' => $baseDir.'/../lib/Controller/TransferOwnershipController.php', |
|
| 42 | + 'OCA\\Files\\Controller\\ViewController' => $baseDir.'/../lib/Controller/ViewController.php', |
|
| 43 | + 'OCA\\Files\\Db\\OpenLocalEditor' => $baseDir.'/../lib/Db/OpenLocalEditor.php', |
|
| 44 | + 'OCA\\Files\\Db\\OpenLocalEditorMapper' => $baseDir.'/../lib/Db/OpenLocalEditorMapper.php', |
|
| 45 | + 'OCA\\Files\\Db\\TransferOwnership' => $baseDir.'/../lib/Db/TransferOwnership.php', |
|
| 46 | + 'OCA\\Files\\Db\\TransferOwnershipMapper' => $baseDir.'/../lib/Db/TransferOwnershipMapper.php', |
|
| 47 | + 'OCA\\Files\\DirectEditingCapabilities' => $baseDir.'/../lib/DirectEditingCapabilities.php', |
|
| 48 | + 'OCA\\Files\\Event\\LoadAdditionalScriptsEvent' => $baseDir.'/../lib/Event/LoadAdditionalScriptsEvent.php', |
|
| 49 | + 'OCA\\Files\\Event\\LoadSidebar' => $baseDir.'/../lib/Event/LoadSidebar.php', |
|
| 50 | + 'OCA\\Files\\Exception\\TransferOwnershipException' => $baseDir.'/../lib/Exception/TransferOwnershipException.php', |
|
| 51 | + 'OCA\\Files\\Helper' => $baseDir.'/../lib/Helper.php', |
|
| 52 | + 'OCA\\Files\\Listener\\LegacyLoadAdditionalScriptsAdapter' => $baseDir.'/../lib/Listener/LegacyLoadAdditionalScriptsAdapter.php', |
|
| 53 | + 'OCA\\Files\\Listener\\LoadSidebarListener' => $baseDir.'/../lib/Listener/LoadSidebarListener.php', |
|
| 54 | + 'OCA\\Files\\Migration\\Version11301Date20191205150729' => $baseDir.'/../lib/Migration/Version11301Date20191205150729.php', |
|
| 55 | + 'OCA\\Files\\Migration\\Version12101Date20221011153334' => $baseDir.'/../lib/Migration/Version12101Date20221011153334.php', |
|
| 56 | + 'OCA\\Files\\Notification\\Notifier' => $baseDir.'/../lib/Notification/Notifier.php', |
|
| 57 | + 'OCA\\Files\\Search\\FilesSearchProvider' => $baseDir.'/../lib/Search/FilesSearchProvider.php', |
|
| 58 | + 'OCA\\Files\\Service\\DirectEditingService' => $baseDir.'/../lib/Service/DirectEditingService.php', |
|
| 59 | + 'OCA\\Files\\Service\\OwnershipTransferService' => $baseDir.'/../lib/Service/OwnershipTransferService.php', |
|
| 60 | + 'OCA\\Files\\Service\\TagService' => $baseDir.'/../lib/Service/TagService.php', |
|
| 61 | + 'OCA\\Files\\Settings\\PersonalSettings' => $baseDir.'/../lib/Settings/PersonalSettings.php', |
|
| 62 | 62 | ); |
@@ -42,154 +42,154 @@ |
||
| 42 | 42 | /** @var Application $application */ |
| 43 | 43 | $application = \OC::$server->query(Application::class); |
| 44 | 44 | $application->registerRoutes( |
| 45 | - $this, |
|
| 46 | - [ |
|
| 47 | - 'routes' => [ |
|
| 48 | - [ |
|
| 49 | - 'name' => 'View#showFile', |
|
| 50 | - 'url' => '/f/{fileid}', |
|
| 51 | - 'verb' => 'GET', |
|
| 52 | - 'root' => '', |
|
| 53 | - ], |
|
| 45 | + $this, |
|
| 46 | + [ |
|
| 47 | + 'routes' => [ |
|
| 48 | + [ |
|
| 49 | + 'name' => 'View#showFile', |
|
| 50 | + 'url' => '/f/{fileid}', |
|
| 51 | + 'verb' => 'GET', |
|
| 52 | + 'root' => '', |
|
| 53 | + ], |
|
| 54 | 54 | |
| 55 | - [ |
|
| 56 | - 'name' => 'API#getThumbnail', |
|
| 57 | - 'url' => '/api/v1/thumbnail/{x}/{y}/{file}', |
|
| 58 | - 'verb' => 'GET', |
|
| 59 | - 'requirements' => ['file' => '.+'] |
|
| 60 | - ], |
|
| 61 | - [ |
|
| 62 | - 'name' => 'API#updateFileTags', |
|
| 63 | - 'url' => '/api/v1/files/{path}', |
|
| 64 | - 'verb' => 'POST', |
|
| 65 | - 'requirements' => ['path' => '.+'], |
|
| 66 | - ], |
|
| 67 | - [ |
|
| 68 | - 'name' => 'API#getRecentFiles', |
|
| 69 | - 'url' => '/api/v1/recent/', |
|
| 70 | - 'verb' => 'GET' |
|
| 71 | - ], |
|
| 72 | - [ |
|
| 73 | - 'name' => 'API#updateFileSorting', |
|
| 74 | - 'url' => '/api/v1/sorting', |
|
| 75 | - 'verb' => 'POST' |
|
| 76 | - ], |
|
| 77 | - [ |
|
| 78 | - 'name' => 'API#showHiddenFiles', |
|
| 79 | - 'url' => '/api/v1/showhidden', |
|
| 80 | - 'verb' => 'POST' |
|
| 81 | - ], |
|
| 82 | - [ |
|
| 83 | - 'name' => 'API#cropImagePreviews', |
|
| 84 | - 'url' => '/api/v1/cropimagepreviews', |
|
| 85 | - 'verb' => 'POST' |
|
| 86 | - ], |
|
| 87 | - [ |
|
| 88 | - 'name' => 'API#showGridView', |
|
| 89 | - 'url' => '/api/v1/showgridview', |
|
| 90 | - 'verb' => 'POST' |
|
| 91 | - ], |
|
| 92 | - [ |
|
| 93 | - 'name' => 'API#getGridView', |
|
| 94 | - 'url' => '/api/v1/showgridview', |
|
| 95 | - 'verb' => 'GET' |
|
| 96 | - ], |
|
| 97 | - [ |
|
| 98 | - 'name' => 'view#index', |
|
| 99 | - 'url' => '/', |
|
| 100 | - 'verb' => 'GET', |
|
| 101 | - ], |
|
| 102 | - [ |
|
| 103 | - 'name' => 'ajax#getStorageStats', |
|
| 104 | - 'url' => '/ajax/getstoragestats', |
|
| 105 | - 'verb' => 'GET', |
|
| 106 | - ], |
|
| 107 | - [ |
|
| 108 | - 'name' => 'API#toggleShowFolder', |
|
| 109 | - 'url' => '/api/v1/toggleShowFolder/{key}', |
|
| 110 | - 'verb' => 'POST' |
|
| 111 | - ], |
|
| 112 | - [ |
|
| 113 | - 'name' => 'API#getNodeType', |
|
| 114 | - 'url' => '/api/v1/quickaccess/get/NodeType', |
|
| 115 | - 'verb' => 'GET', |
|
| 116 | - ], |
|
| 117 | - [ |
|
| 118 | - 'name' => 'DirectEditingView#edit', |
|
| 119 | - 'url' => '/directEditing/{token}', |
|
| 120 | - 'verb' => 'GET' |
|
| 121 | - ], |
|
| 122 | - ], |
|
| 123 | - 'ocs' => [ |
|
| 124 | - [ |
|
| 125 | - 'name' => 'DirectEditing#info', |
|
| 126 | - 'url' => '/api/v1/directEditing', |
|
| 127 | - 'verb' => 'GET' |
|
| 128 | - ], |
|
| 129 | - [ |
|
| 130 | - 'name' => 'DirectEditing#templates', |
|
| 131 | - 'url' => '/api/v1/directEditing/templates/{editorId}/{creatorId}', |
|
| 132 | - 'verb' => 'GET' |
|
| 133 | - ], |
|
| 134 | - [ |
|
| 135 | - 'name' => 'DirectEditing#open', |
|
| 136 | - 'url' => '/api/v1/directEditing/open', |
|
| 137 | - 'verb' => 'POST' |
|
| 138 | - ], |
|
| 139 | - [ |
|
| 140 | - 'name' => 'DirectEditing#create', |
|
| 141 | - 'url' => '/api/v1/directEditing/create', |
|
| 142 | - 'verb' => 'POST' |
|
| 143 | - ], |
|
| 144 | - [ |
|
| 145 | - 'name' => 'Template#list', |
|
| 146 | - 'url' => '/api/v1/templates', |
|
| 147 | - 'verb' => 'GET' |
|
| 148 | - ], |
|
| 149 | - [ |
|
| 150 | - 'name' => 'Template#create', |
|
| 151 | - 'url' => '/api/v1/templates/create', |
|
| 152 | - 'verb' => 'POST' |
|
| 153 | - ], |
|
| 154 | - [ |
|
| 155 | - 'name' => 'Template#path', |
|
| 156 | - 'url' => '/api/v1/templates/path', |
|
| 157 | - 'verb' => 'POST' |
|
| 158 | - ], |
|
| 159 | - [ |
|
| 160 | - 'name' => 'TransferOwnership#transfer', |
|
| 161 | - 'url' => '/api/v1/transferownership', |
|
| 162 | - 'verb' => 'POST', |
|
| 163 | - ], |
|
| 164 | - [ |
|
| 165 | - 'name' => 'TransferOwnership#accept', |
|
| 166 | - 'url' => '/api/v1/transferownership/{id}', |
|
| 167 | - 'verb' => 'POST', |
|
| 168 | - ], |
|
| 169 | - [ |
|
| 170 | - 'name' => 'TransferOwnership#reject', |
|
| 171 | - 'url' => '/api/v1/transferownership/{id}', |
|
| 172 | - 'verb' => 'DELETE', |
|
| 173 | - ], |
|
| 174 | - [ |
|
| 175 | - /** @see OpenLocalEditorController::create() */ |
|
| 176 | - 'name' => 'OpenLocalEditor#create', |
|
| 177 | - 'url' => '/api/v1/openlocaleditor', |
|
| 178 | - 'verb' => 'POST', |
|
| 179 | - ], |
|
| 180 | - [ |
|
| 181 | - /** @see OpenLocalEditorController::validate() */ |
|
| 182 | - 'name' => 'OpenLocalEditor#validate', |
|
| 183 | - 'url' => '/api/v1/openlocaleditor/{token}', |
|
| 184 | - 'verb' => 'POST', |
|
| 185 | - ], |
|
| 186 | - ], |
|
| 187 | - ] |
|
| 55 | + [ |
|
| 56 | + 'name' => 'API#getThumbnail', |
|
| 57 | + 'url' => '/api/v1/thumbnail/{x}/{y}/{file}', |
|
| 58 | + 'verb' => 'GET', |
|
| 59 | + 'requirements' => ['file' => '.+'] |
|
| 60 | + ], |
|
| 61 | + [ |
|
| 62 | + 'name' => 'API#updateFileTags', |
|
| 63 | + 'url' => '/api/v1/files/{path}', |
|
| 64 | + 'verb' => 'POST', |
|
| 65 | + 'requirements' => ['path' => '.+'], |
|
| 66 | + ], |
|
| 67 | + [ |
|
| 68 | + 'name' => 'API#getRecentFiles', |
|
| 69 | + 'url' => '/api/v1/recent/', |
|
| 70 | + 'verb' => 'GET' |
|
| 71 | + ], |
|
| 72 | + [ |
|
| 73 | + 'name' => 'API#updateFileSorting', |
|
| 74 | + 'url' => '/api/v1/sorting', |
|
| 75 | + 'verb' => 'POST' |
|
| 76 | + ], |
|
| 77 | + [ |
|
| 78 | + 'name' => 'API#showHiddenFiles', |
|
| 79 | + 'url' => '/api/v1/showhidden', |
|
| 80 | + 'verb' => 'POST' |
|
| 81 | + ], |
|
| 82 | + [ |
|
| 83 | + 'name' => 'API#cropImagePreviews', |
|
| 84 | + 'url' => '/api/v1/cropimagepreviews', |
|
| 85 | + 'verb' => 'POST' |
|
| 86 | + ], |
|
| 87 | + [ |
|
| 88 | + 'name' => 'API#showGridView', |
|
| 89 | + 'url' => '/api/v1/showgridview', |
|
| 90 | + 'verb' => 'POST' |
|
| 91 | + ], |
|
| 92 | + [ |
|
| 93 | + 'name' => 'API#getGridView', |
|
| 94 | + 'url' => '/api/v1/showgridview', |
|
| 95 | + 'verb' => 'GET' |
|
| 96 | + ], |
|
| 97 | + [ |
|
| 98 | + 'name' => 'view#index', |
|
| 99 | + 'url' => '/', |
|
| 100 | + 'verb' => 'GET', |
|
| 101 | + ], |
|
| 102 | + [ |
|
| 103 | + 'name' => 'ajax#getStorageStats', |
|
| 104 | + 'url' => '/ajax/getstoragestats', |
|
| 105 | + 'verb' => 'GET', |
|
| 106 | + ], |
|
| 107 | + [ |
|
| 108 | + 'name' => 'API#toggleShowFolder', |
|
| 109 | + 'url' => '/api/v1/toggleShowFolder/{key}', |
|
| 110 | + 'verb' => 'POST' |
|
| 111 | + ], |
|
| 112 | + [ |
|
| 113 | + 'name' => 'API#getNodeType', |
|
| 114 | + 'url' => '/api/v1/quickaccess/get/NodeType', |
|
| 115 | + 'verb' => 'GET', |
|
| 116 | + ], |
|
| 117 | + [ |
|
| 118 | + 'name' => 'DirectEditingView#edit', |
|
| 119 | + 'url' => '/directEditing/{token}', |
|
| 120 | + 'verb' => 'GET' |
|
| 121 | + ], |
|
| 122 | + ], |
|
| 123 | + 'ocs' => [ |
|
| 124 | + [ |
|
| 125 | + 'name' => 'DirectEditing#info', |
|
| 126 | + 'url' => '/api/v1/directEditing', |
|
| 127 | + 'verb' => 'GET' |
|
| 128 | + ], |
|
| 129 | + [ |
|
| 130 | + 'name' => 'DirectEditing#templates', |
|
| 131 | + 'url' => '/api/v1/directEditing/templates/{editorId}/{creatorId}', |
|
| 132 | + 'verb' => 'GET' |
|
| 133 | + ], |
|
| 134 | + [ |
|
| 135 | + 'name' => 'DirectEditing#open', |
|
| 136 | + 'url' => '/api/v1/directEditing/open', |
|
| 137 | + 'verb' => 'POST' |
|
| 138 | + ], |
|
| 139 | + [ |
|
| 140 | + 'name' => 'DirectEditing#create', |
|
| 141 | + 'url' => '/api/v1/directEditing/create', |
|
| 142 | + 'verb' => 'POST' |
|
| 143 | + ], |
|
| 144 | + [ |
|
| 145 | + 'name' => 'Template#list', |
|
| 146 | + 'url' => '/api/v1/templates', |
|
| 147 | + 'verb' => 'GET' |
|
| 148 | + ], |
|
| 149 | + [ |
|
| 150 | + 'name' => 'Template#create', |
|
| 151 | + 'url' => '/api/v1/templates/create', |
|
| 152 | + 'verb' => 'POST' |
|
| 153 | + ], |
|
| 154 | + [ |
|
| 155 | + 'name' => 'Template#path', |
|
| 156 | + 'url' => '/api/v1/templates/path', |
|
| 157 | + 'verb' => 'POST' |
|
| 158 | + ], |
|
| 159 | + [ |
|
| 160 | + 'name' => 'TransferOwnership#transfer', |
|
| 161 | + 'url' => '/api/v1/transferownership', |
|
| 162 | + 'verb' => 'POST', |
|
| 163 | + ], |
|
| 164 | + [ |
|
| 165 | + 'name' => 'TransferOwnership#accept', |
|
| 166 | + 'url' => '/api/v1/transferownership/{id}', |
|
| 167 | + 'verb' => 'POST', |
|
| 168 | + ], |
|
| 169 | + [ |
|
| 170 | + 'name' => 'TransferOwnership#reject', |
|
| 171 | + 'url' => '/api/v1/transferownership/{id}', |
|
| 172 | + 'verb' => 'DELETE', |
|
| 173 | + ], |
|
| 174 | + [ |
|
| 175 | + /** @see OpenLocalEditorController::create() */ |
|
| 176 | + 'name' => 'OpenLocalEditor#create', |
|
| 177 | + 'url' => '/api/v1/openlocaleditor', |
|
| 178 | + 'verb' => 'POST', |
|
| 179 | + ], |
|
| 180 | + [ |
|
| 181 | + /** @see OpenLocalEditorController::validate() */ |
|
| 182 | + 'name' => 'OpenLocalEditor#validate', |
|
| 183 | + 'url' => '/api/v1/openlocaleditor/{token}', |
|
| 184 | + 'verb' => 'POST', |
|
| 185 | + ], |
|
| 186 | + ], |
|
| 187 | + ] |
|
| 188 | 188 | ); |
| 189 | 189 | |
| 190 | 190 | /** @var $this \OC\Route\Router */ |
| 191 | 191 | |
| 192 | 192 | $this->create('files_ajax_download', 'apps/files/ajax/download.php') |
| 193 | - ->actionInclude('files/ajax/download.php'); |
|
| 193 | + ->actionInclude('files/ajax/download.php'); |
|
| 194 | 194 | $this->create('files_ajax_list', 'apps/files/ajax/list.php') |
| 195 | - ->actionInclude('files/ajax/list.php'); |
|
| 195 | + ->actionInclude('files/ajax/list.php'); |
|