@@ -20,138 +20,138 @@ |
||
| 20 | 20 | #[\PHPUnit\Framework\Attributes\Group('DB')] |
| 21 | 21 | class DuplicateAssignmentIntegrationTest extends TestCase { |
| 22 | 22 | |
| 23 | - private AuthorizedGroupService $service; |
|
| 24 | - private AuthorizedGroupMapper $mapper; |
|
| 25 | - |
|
| 26 | - protected function setUp(): void { |
|
| 27 | - parent::setUp(); |
|
| 28 | - |
|
| 29 | - // Use real mapper for integration testing |
|
| 30 | - $this->mapper = \OCP\Server::get(AuthorizedGroupMapper::class); |
|
| 31 | - $this->service = new AuthorizedGroupService($this->mapper); |
|
| 32 | - } |
|
| 33 | - |
|
| 34 | - protected function tearDown(): void { |
|
| 35 | - // Clean up any test data |
|
| 36 | - try { |
|
| 37 | - $allGroups = $this->mapper->findAll(); |
|
| 38 | - foreach ($allGroups as $group) { |
|
| 39 | - if (str_starts_with($group->getGroupId(), 'test_') |
|
| 40 | - || str_starts_with($group->getClass(), 'TestClass')) { |
|
| 41 | - $this->mapper->delete($group); |
|
| 42 | - } |
|
| 43 | - } |
|
| 44 | - } catch (\Exception $e) { |
|
| 45 | - // Ignore cleanup errors |
|
| 46 | - } |
|
| 47 | - parent::tearDown(); |
|
| 48 | - } |
|
| 49 | - |
|
| 50 | - public function testDuplicateAssignmentPrevention(): void { |
|
| 51 | - $groupId = 'test_duplicate_group'; |
|
| 52 | - $class = 'TestClass\\DuplicateTest'; |
|
| 53 | - |
|
| 54 | - // First assignment should succeed |
|
| 55 | - $result1 = $this->service->create($groupId, $class); |
|
| 56 | - $this->assertInstanceOf(AuthorizedGroup::class, $result1); |
|
| 57 | - $this->assertEquals($groupId, $result1->getGroupId()); |
|
| 58 | - $this->assertEquals($class, $result1->getClass()); |
|
| 59 | - $this->assertNotNull($result1->getId()); |
|
| 60 | - |
|
| 61 | - // Second assignment of same group to same class should throw ConflictException |
|
| 62 | - $this->expectException(ConflictException::class); |
|
| 63 | - $this->expectExceptionMessage('Group is already assigned to this class'); |
|
| 64 | - |
|
| 65 | - $this->service->create($groupId, $class); |
|
| 66 | - } |
|
| 67 | - |
|
| 68 | - public function testDifferentGroupsSameClassAllowed(): void { |
|
| 69 | - $groupId1 = 'test_group_1'; |
|
| 70 | - $groupId2 = 'test_group_2'; |
|
| 71 | - $class = 'TestClass\\MultiGroup'; |
|
| 72 | - |
|
| 73 | - // Both assignments should succeed |
|
| 74 | - $result1 = $this->service->create($groupId1, $class); |
|
| 75 | - $result2 = $this->service->create($groupId2, $class); |
|
| 76 | - |
|
| 77 | - $this->assertEquals($groupId1, $result1->getGroupId()); |
|
| 78 | - $this->assertEquals($groupId2, $result2->getGroupId()); |
|
| 79 | - $this->assertEquals($class, $result1->getClass()); |
|
| 80 | - $this->assertEquals($class, $result2->getClass()); |
|
| 81 | - $this->assertNotEquals($result1->getId(), $result2->getId()); |
|
| 82 | - } |
|
| 83 | - |
|
| 84 | - public function testSameGroupDifferentClassesAllowed(): void { |
|
| 85 | - $groupId = 'test_multi_class_group'; |
|
| 86 | - $class1 = 'TestClass\\First'; |
|
| 87 | - $class2 = 'TestClass\\Second'; |
|
| 88 | - |
|
| 89 | - // Both assignments should succeed |
|
| 90 | - $result1 = $this->service->create($groupId, $class1); |
|
| 91 | - $result2 = $this->service->create($groupId, $class2); |
|
| 92 | - |
|
| 93 | - $this->assertEquals($groupId, $result1->getGroupId()); |
|
| 94 | - $this->assertEquals($groupId, $result2->getGroupId()); |
|
| 95 | - $this->assertEquals($class1, $result1->getClass()); |
|
| 96 | - $this->assertEquals($class2, $result2->getClass()); |
|
| 97 | - $this->assertNotEquals($result1->getId(), $result2->getId()); |
|
| 98 | - } |
|
| 99 | - |
|
| 100 | - public function testCreateAfterDelete(): void { |
|
| 101 | - $groupId = 'test_recreate_group'; |
|
| 102 | - $class = 'TestClass\\Recreate'; |
|
| 103 | - |
|
| 104 | - // Create initial assignment |
|
| 105 | - $result1 = $this->service->create($groupId, $class); |
|
| 106 | - $initialId = $result1->getId(); |
|
| 107 | - |
|
| 108 | - // Delete the assignment |
|
| 109 | - $this->service->delete($initialId); |
|
| 110 | - |
|
| 111 | - // Verify it's deleted by trying to find it |
|
| 112 | - $this->expectException(\OCP\AppFramework\Db\DoesNotExistException::class); |
|
| 113 | - try { |
|
| 114 | - $this->service->find($initialId); |
|
| 115 | - } catch (\OCA\Settings\Service\NotFoundException $e) { |
|
| 116 | - // Expected - now create the same assignment again, which should succeed |
|
| 117 | - $result2 = $this->service->create($groupId, $class); |
|
| 118 | - |
|
| 119 | - $this->assertEquals($groupId, $result2->getGroupId()); |
|
| 120 | - $this->assertEquals($class, $result2->getClass()); |
|
| 121 | - $this->assertNotEquals($initialId, $result2->getId()); |
|
| 122 | - return; |
|
| 123 | - } |
|
| 124 | - |
|
| 125 | - $this->fail('Expected NotFoundException when finding deleted group'); |
|
| 126 | - } |
|
| 127 | - |
|
| 128 | - /** |
|
| 129 | - * Test the mapper's findByGroupIdAndClass method behavior with duplicates |
|
| 130 | - */ |
|
| 131 | - public function testMapperFindByGroupIdAndClassBehavior(): void { |
|
| 132 | - $groupId = 'test_mapper_group'; |
|
| 133 | - $class = 'TestClass\\MapperTest'; |
|
| 134 | - |
|
| 135 | - // Initially should throw DoesNotExistException |
|
| 136 | - $this->expectException(DoesNotExistException::class); |
|
| 137 | - $this->mapper->findByGroupIdAndClass($groupId, $class); |
|
| 138 | - } |
|
| 139 | - |
|
| 140 | - /** |
|
| 141 | - * Test that mapper returns existing record after creation |
|
| 142 | - */ |
|
| 143 | - public function testMapperFindsExistingRecord(): void { |
|
| 144 | - $groupId = 'test_existing_group'; |
|
| 145 | - $class = 'TestClass\\Existing'; |
|
| 146 | - |
|
| 147 | - // Create the record first |
|
| 148 | - $created = $this->service->create($groupId, $class); |
|
| 149 | - |
|
| 150 | - // Now mapper should find it |
|
| 151 | - $found = $this->mapper->findByGroupIdAndClass($groupId, $class); |
|
| 152 | - |
|
| 153 | - $this->assertEquals($created->getId(), $found->getId()); |
|
| 154 | - $this->assertEquals($groupId, $found->getGroupId()); |
|
| 155 | - $this->assertEquals($class, $found->getClass()); |
|
| 156 | - } |
|
| 23 | + private AuthorizedGroupService $service; |
|
| 24 | + private AuthorizedGroupMapper $mapper; |
|
| 25 | + |
|
| 26 | + protected function setUp(): void { |
|
| 27 | + parent::setUp(); |
|
| 28 | + |
|
| 29 | + // Use real mapper for integration testing |
|
| 30 | + $this->mapper = \OCP\Server::get(AuthorizedGroupMapper::class); |
|
| 31 | + $this->service = new AuthorizedGroupService($this->mapper); |
|
| 32 | + } |
|
| 33 | + |
|
| 34 | + protected function tearDown(): void { |
|
| 35 | + // Clean up any test data |
|
| 36 | + try { |
|
| 37 | + $allGroups = $this->mapper->findAll(); |
|
| 38 | + foreach ($allGroups as $group) { |
|
| 39 | + if (str_starts_with($group->getGroupId(), 'test_') |
|
| 40 | + || str_starts_with($group->getClass(), 'TestClass')) { |
|
| 41 | + $this->mapper->delete($group); |
|
| 42 | + } |
|
| 43 | + } |
|
| 44 | + } catch (\Exception $e) { |
|
| 45 | + // Ignore cleanup errors |
|
| 46 | + } |
|
| 47 | + parent::tearDown(); |
|
| 48 | + } |
|
| 49 | + |
|
| 50 | + public function testDuplicateAssignmentPrevention(): void { |
|
| 51 | + $groupId = 'test_duplicate_group'; |
|
| 52 | + $class = 'TestClass\\DuplicateTest'; |
|
| 53 | + |
|
| 54 | + // First assignment should succeed |
|
| 55 | + $result1 = $this->service->create($groupId, $class); |
|
| 56 | + $this->assertInstanceOf(AuthorizedGroup::class, $result1); |
|
| 57 | + $this->assertEquals($groupId, $result1->getGroupId()); |
|
| 58 | + $this->assertEquals($class, $result1->getClass()); |
|
| 59 | + $this->assertNotNull($result1->getId()); |
|
| 60 | + |
|
| 61 | + // Second assignment of same group to same class should throw ConflictException |
|
| 62 | + $this->expectException(ConflictException::class); |
|
| 63 | + $this->expectExceptionMessage('Group is already assigned to this class'); |
|
| 64 | + |
|
| 65 | + $this->service->create($groupId, $class); |
|
| 66 | + } |
|
| 67 | + |
|
| 68 | + public function testDifferentGroupsSameClassAllowed(): void { |
|
| 69 | + $groupId1 = 'test_group_1'; |
|
| 70 | + $groupId2 = 'test_group_2'; |
|
| 71 | + $class = 'TestClass\\MultiGroup'; |
|
| 72 | + |
|
| 73 | + // Both assignments should succeed |
|
| 74 | + $result1 = $this->service->create($groupId1, $class); |
|
| 75 | + $result2 = $this->service->create($groupId2, $class); |
|
| 76 | + |
|
| 77 | + $this->assertEquals($groupId1, $result1->getGroupId()); |
|
| 78 | + $this->assertEquals($groupId2, $result2->getGroupId()); |
|
| 79 | + $this->assertEquals($class, $result1->getClass()); |
|
| 80 | + $this->assertEquals($class, $result2->getClass()); |
|
| 81 | + $this->assertNotEquals($result1->getId(), $result2->getId()); |
|
| 82 | + } |
|
| 83 | + |
|
| 84 | + public function testSameGroupDifferentClassesAllowed(): void { |
|
| 85 | + $groupId = 'test_multi_class_group'; |
|
| 86 | + $class1 = 'TestClass\\First'; |
|
| 87 | + $class2 = 'TestClass\\Second'; |
|
| 88 | + |
|
| 89 | + // Both assignments should succeed |
|
| 90 | + $result1 = $this->service->create($groupId, $class1); |
|
| 91 | + $result2 = $this->service->create($groupId, $class2); |
|
| 92 | + |
|
| 93 | + $this->assertEquals($groupId, $result1->getGroupId()); |
|
| 94 | + $this->assertEquals($groupId, $result2->getGroupId()); |
|
| 95 | + $this->assertEquals($class1, $result1->getClass()); |
|
| 96 | + $this->assertEquals($class2, $result2->getClass()); |
|
| 97 | + $this->assertNotEquals($result1->getId(), $result2->getId()); |
|
| 98 | + } |
|
| 99 | + |
|
| 100 | + public function testCreateAfterDelete(): void { |
|
| 101 | + $groupId = 'test_recreate_group'; |
|
| 102 | + $class = 'TestClass\\Recreate'; |
|
| 103 | + |
|
| 104 | + // Create initial assignment |
|
| 105 | + $result1 = $this->service->create($groupId, $class); |
|
| 106 | + $initialId = $result1->getId(); |
|
| 107 | + |
|
| 108 | + // Delete the assignment |
|
| 109 | + $this->service->delete($initialId); |
|
| 110 | + |
|
| 111 | + // Verify it's deleted by trying to find it |
|
| 112 | + $this->expectException(\OCP\AppFramework\Db\DoesNotExistException::class); |
|
| 113 | + try { |
|
| 114 | + $this->service->find($initialId); |
|
| 115 | + } catch (\OCA\Settings\Service\NotFoundException $e) { |
|
| 116 | + // Expected - now create the same assignment again, which should succeed |
|
| 117 | + $result2 = $this->service->create($groupId, $class); |
|
| 118 | + |
|
| 119 | + $this->assertEquals($groupId, $result2->getGroupId()); |
|
| 120 | + $this->assertEquals($class, $result2->getClass()); |
|
| 121 | + $this->assertNotEquals($initialId, $result2->getId()); |
|
| 122 | + return; |
|
| 123 | + } |
|
| 124 | + |
|
| 125 | + $this->fail('Expected NotFoundException when finding deleted group'); |
|
| 126 | + } |
|
| 127 | + |
|
| 128 | + /** |
|
| 129 | + * Test the mapper's findByGroupIdAndClass method behavior with duplicates |
|
| 130 | + */ |
|
| 131 | + public function testMapperFindByGroupIdAndClassBehavior(): void { |
|
| 132 | + $groupId = 'test_mapper_group'; |
|
| 133 | + $class = 'TestClass\\MapperTest'; |
|
| 134 | + |
|
| 135 | + // Initially should throw DoesNotExistException |
|
| 136 | + $this->expectException(DoesNotExistException::class); |
|
| 137 | + $this->mapper->findByGroupIdAndClass($groupId, $class); |
|
| 138 | + } |
|
| 139 | + |
|
| 140 | + /** |
|
| 141 | + * Test that mapper returns existing record after creation |
|
| 142 | + */ |
|
| 143 | + public function testMapperFindsExistingRecord(): void { |
|
| 144 | + $groupId = 'test_existing_group'; |
|
| 145 | + $class = 'TestClass\\Existing'; |
|
| 146 | + |
|
| 147 | + // Create the record first |
|
| 148 | + $created = $this->service->create($groupId, $class); |
|
| 149 | + |
|
| 150 | + // Now mapper should find it |
|
| 151 | + $found = $this->mapper->findByGroupIdAndClass($groupId, $class); |
|
| 152 | + |
|
| 153 | + $this->assertEquals($created->getId(), $found->getId()); |
|
| 154 | + $this->assertEquals($groupId, $found->getGroupId()); |
|
| 155 | + $this->assertEquals($class, $found->getClass()); |
|
| 156 | + } |
|
| 157 | 157 | } |
@@ -19,140 +19,140 @@ |
||
| 19 | 19 | |
| 20 | 20 | class AuthorizedGroupServiceTest extends TestCase { |
| 21 | 21 | |
| 22 | - private AuthorizedGroupMapper&MockObject $mapper; |
|
| 23 | - private AuthorizedGroupService $service; |
|
| 24 | - |
|
| 25 | - protected function setUp(): void { |
|
| 26 | - parent::setUp(); |
|
| 27 | - $this->mapper = $this->createMock(AuthorizedGroupMapper::class); |
|
| 28 | - $this->service = new AuthorizedGroupService($this->mapper); |
|
| 29 | - } |
|
| 30 | - |
|
| 31 | - public function testCreateSuccessWhenNoDuplicateExists(): void { |
|
| 32 | - $groupId = 'testgroup'; |
|
| 33 | - $class = 'TestClass'; |
|
| 34 | - |
|
| 35 | - // Mock that no existing assignment is found (throws DoesNotExistException) |
|
| 36 | - $this->mapper->expects($this->once()) |
|
| 37 | - ->method('findByGroupIdAndClass') |
|
| 38 | - ->with($groupId, $class) |
|
| 39 | - ->willThrowException(new DoesNotExistException('Not found')); |
|
| 40 | - |
|
| 41 | - // Mock the successful creation |
|
| 42 | - $expectedGroup = new AuthorizedGroup(); |
|
| 43 | - $expectedGroup->setGroupId($groupId); |
|
| 44 | - $expectedGroup->setClass($class); |
|
| 45 | - $expectedGroup->setId(123); |
|
| 46 | - |
|
| 47 | - $this->mapper->expects($this->once()) |
|
| 48 | - ->method('insert') |
|
| 49 | - ->willReturn($expectedGroup); |
|
| 50 | - |
|
| 51 | - $result = $this->service->create($groupId, $class); |
|
| 52 | - |
|
| 53 | - $this->assertInstanceOf(AuthorizedGroup::class, $result); |
|
| 54 | - $this->assertEquals($groupId, $result->getGroupId()); |
|
| 55 | - $this->assertEquals($class, $result->getClass()); |
|
| 56 | - } |
|
| 57 | - |
|
| 58 | - public function testCreateThrowsConflictExceptionWhenDuplicateExists(): void { |
|
| 59 | - $groupId = 'testgroup'; |
|
| 60 | - $class = 'TestClass'; |
|
| 61 | - |
|
| 62 | - // Mock that an existing assignment is found |
|
| 63 | - $existingGroup = new AuthorizedGroup(); |
|
| 64 | - $existingGroup->setGroupId($groupId); |
|
| 65 | - $existingGroup->setClass($class); |
|
| 66 | - $existingGroup->setId(42); |
|
| 67 | - |
|
| 68 | - $this->mapper->expects($this->once()) |
|
| 69 | - ->method('findByGroupIdAndClass') |
|
| 70 | - ->with($groupId, $class) |
|
| 71 | - ->willReturn($existingGroup); |
|
| 72 | - |
|
| 73 | - // Mapper insert should never be called when duplicate exists |
|
| 74 | - $this->mapper->expects($this->never()) |
|
| 75 | - ->method('insert'); |
|
| 76 | - |
|
| 77 | - $this->expectException(ConflictException::class); |
|
| 78 | - $this->expectExceptionMessage('Group is already assigned to this class'); |
|
| 79 | - |
|
| 80 | - $this->service->create($groupId, $class); |
|
| 81 | - } |
|
| 82 | - |
|
| 83 | - public function testCreateAllowsDifferentGroupsSameClass(): void { |
|
| 84 | - $groupId1 = 'testgroup1'; |
|
| 85 | - $groupId2 = 'testgroup2'; |
|
| 86 | - $class = 'TestClass'; |
|
| 87 | - |
|
| 88 | - // Mock that no duplicate exists for group1 |
|
| 89 | - $this->mapper->expects($this->exactly(2)) |
|
| 90 | - ->method('findByGroupIdAndClass') |
|
| 91 | - ->willReturnCallback(function ($groupId, $classArg) use ($groupId1, $groupId2, $class) { |
|
| 92 | - $this->assertContains($groupId, [$groupId1, $groupId2]); |
|
| 93 | - $this->assertEquals($class, $classArg); |
|
| 94 | - throw new DoesNotExistException('Not found'); |
|
| 95 | - }); |
|
| 96 | - |
|
| 97 | - $expectedGroup1 = new AuthorizedGroup(); |
|
| 98 | - $expectedGroup1->setGroupId($groupId1); |
|
| 99 | - $expectedGroup1->setClass($class); |
|
| 100 | - $expectedGroup1->setId(123); |
|
| 101 | - |
|
| 102 | - $expectedGroup2 = new AuthorizedGroup(); |
|
| 103 | - $expectedGroup2->setGroupId($groupId2); |
|
| 104 | - $expectedGroup2->setClass($class); |
|
| 105 | - $expectedGroup2->setId(124); |
|
| 106 | - |
|
| 107 | - $this->mapper->expects($this->exactly(2)) |
|
| 108 | - ->method('insert') |
|
| 109 | - ->willReturnOnConsecutiveCalls($expectedGroup1, $expectedGroup2); |
|
| 110 | - |
|
| 111 | - // Both creations should succeed |
|
| 112 | - $result1 = $this->service->create($groupId1, $class); |
|
| 113 | - $this->assertEquals($groupId1, $result1->getGroupId()); |
|
| 114 | - $this->assertEquals($class, $result1->getClass()); |
|
| 115 | - |
|
| 116 | - $result2 = $this->service->create($groupId2, $class); |
|
| 117 | - $this->assertEquals($groupId2, $result2->getGroupId()); |
|
| 118 | - $this->assertEquals($class, $result2->getClass()); |
|
| 119 | - } |
|
| 120 | - |
|
| 121 | - public function testCreateAllowsSameGroupDifferentClasses(): void { |
|
| 122 | - $groupId = 'testgroup'; |
|
| 123 | - $class1 = 'TestClass1'; |
|
| 124 | - $class2 = 'TestClass2'; |
|
| 125 | - |
|
| 126 | - // Mock that no duplicate exists for either class |
|
| 127 | - $this->mapper->expects($this->exactly(2)) |
|
| 128 | - ->method('findByGroupIdAndClass') |
|
| 129 | - ->willReturnCallback(function ($groupIdArg, $class) use ($groupId, $class1, $class2) { |
|
| 130 | - $this->assertEquals($groupId, $groupIdArg); |
|
| 131 | - $this->assertContains($class, [$class1, $class2]); |
|
| 132 | - throw new DoesNotExistException('Not found'); |
|
| 133 | - }); |
|
| 134 | - |
|
| 135 | - $expectedGroup1 = new AuthorizedGroup(); |
|
| 136 | - $expectedGroup1->setGroupId($groupId); |
|
| 137 | - $expectedGroup1->setClass($class1); |
|
| 138 | - $expectedGroup1->setId(123); |
|
| 139 | - |
|
| 140 | - $expectedGroup2 = new AuthorizedGroup(); |
|
| 141 | - $expectedGroup2->setGroupId($groupId); |
|
| 142 | - $expectedGroup2->setClass($class2); |
|
| 143 | - $expectedGroup2->setId(124); |
|
| 144 | - |
|
| 145 | - $this->mapper->expects($this->exactly(2)) |
|
| 146 | - ->method('insert') |
|
| 147 | - ->willReturnOnConsecutiveCalls($expectedGroup1, $expectedGroup2); |
|
| 148 | - |
|
| 149 | - // Both creations should succeed |
|
| 150 | - $result1 = $this->service->create($groupId, $class1); |
|
| 151 | - $result2 = $this->service->create($groupId, $class2); |
|
| 152 | - |
|
| 153 | - $this->assertEquals($groupId, $result1->getGroupId()); |
|
| 154 | - $this->assertEquals($groupId, $result2->getGroupId()); |
|
| 155 | - $this->assertEquals($class1, $result1->getClass()); |
|
| 156 | - $this->assertEquals($class2, $result2->getClass()); |
|
| 157 | - } |
|
| 22 | + private AuthorizedGroupMapper&MockObject $mapper; |
|
| 23 | + private AuthorizedGroupService $service; |
|
| 24 | + |
|
| 25 | + protected function setUp(): void { |
|
| 26 | + parent::setUp(); |
|
| 27 | + $this->mapper = $this->createMock(AuthorizedGroupMapper::class); |
|
| 28 | + $this->service = new AuthorizedGroupService($this->mapper); |
|
| 29 | + } |
|
| 30 | + |
|
| 31 | + public function testCreateSuccessWhenNoDuplicateExists(): void { |
|
| 32 | + $groupId = 'testgroup'; |
|
| 33 | + $class = 'TestClass'; |
|
| 34 | + |
|
| 35 | + // Mock that no existing assignment is found (throws DoesNotExistException) |
|
| 36 | + $this->mapper->expects($this->once()) |
|
| 37 | + ->method('findByGroupIdAndClass') |
|
| 38 | + ->with($groupId, $class) |
|
| 39 | + ->willThrowException(new DoesNotExistException('Not found')); |
|
| 40 | + |
|
| 41 | + // Mock the successful creation |
|
| 42 | + $expectedGroup = new AuthorizedGroup(); |
|
| 43 | + $expectedGroup->setGroupId($groupId); |
|
| 44 | + $expectedGroup->setClass($class); |
|
| 45 | + $expectedGroup->setId(123); |
|
| 46 | + |
|
| 47 | + $this->mapper->expects($this->once()) |
|
| 48 | + ->method('insert') |
|
| 49 | + ->willReturn($expectedGroup); |
|
| 50 | + |
|
| 51 | + $result = $this->service->create($groupId, $class); |
|
| 52 | + |
|
| 53 | + $this->assertInstanceOf(AuthorizedGroup::class, $result); |
|
| 54 | + $this->assertEquals($groupId, $result->getGroupId()); |
|
| 55 | + $this->assertEquals($class, $result->getClass()); |
|
| 56 | + } |
|
| 57 | + |
|
| 58 | + public function testCreateThrowsConflictExceptionWhenDuplicateExists(): void { |
|
| 59 | + $groupId = 'testgroup'; |
|
| 60 | + $class = 'TestClass'; |
|
| 61 | + |
|
| 62 | + // Mock that an existing assignment is found |
|
| 63 | + $existingGroup = new AuthorizedGroup(); |
|
| 64 | + $existingGroup->setGroupId($groupId); |
|
| 65 | + $existingGroup->setClass($class); |
|
| 66 | + $existingGroup->setId(42); |
|
| 67 | + |
|
| 68 | + $this->mapper->expects($this->once()) |
|
| 69 | + ->method('findByGroupIdAndClass') |
|
| 70 | + ->with($groupId, $class) |
|
| 71 | + ->willReturn($existingGroup); |
|
| 72 | + |
|
| 73 | + // Mapper insert should never be called when duplicate exists |
|
| 74 | + $this->mapper->expects($this->never()) |
|
| 75 | + ->method('insert'); |
|
| 76 | + |
|
| 77 | + $this->expectException(ConflictException::class); |
|
| 78 | + $this->expectExceptionMessage('Group is already assigned to this class'); |
|
| 79 | + |
|
| 80 | + $this->service->create($groupId, $class); |
|
| 81 | + } |
|
| 82 | + |
|
| 83 | + public function testCreateAllowsDifferentGroupsSameClass(): void { |
|
| 84 | + $groupId1 = 'testgroup1'; |
|
| 85 | + $groupId2 = 'testgroup2'; |
|
| 86 | + $class = 'TestClass'; |
|
| 87 | + |
|
| 88 | + // Mock that no duplicate exists for group1 |
|
| 89 | + $this->mapper->expects($this->exactly(2)) |
|
| 90 | + ->method('findByGroupIdAndClass') |
|
| 91 | + ->willReturnCallback(function ($groupId, $classArg) use ($groupId1, $groupId2, $class) { |
|
| 92 | + $this->assertContains($groupId, [$groupId1, $groupId2]); |
|
| 93 | + $this->assertEquals($class, $classArg); |
|
| 94 | + throw new DoesNotExistException('Not found'); |
|
| 95 | + }); |
|
| 96 | + |
|
| 97 | + $expectedGroup1 = new AuthorizedGroup(); |
|
| 98 | + $expectedGroup1->setGroupId($groupId1); |
|
| 99 | + $expectedGroup1->setClass($class); |
|
| 100 | + $expectedGroup1->setId(123); |
|
| 101 | + |
|
| 102 | + $expectedGroup2 = new AuthorizedGroup(); |
|
| 103 | + $expectedGroup2->setGroupId($groupId2); |
|
| 104 | + $expectedGroup2->setClass($class); |
|
| 105 | + $expectedGroup2->setId(124); |
|
| 106 | + |
|
| 107 | + $this->mapper->expects($this->exactly(2)) |
|
| 108 | + ->method('insert') |
|
| 109 | + ->willReturnOnConsecutiveCalls($expectedGroup1, $expectedGroup2); |
|
| 110 | + |
|
| 111 | + // Both creations should succeed |
|
| 112 | + $result1 = $this->service->create($groupId1, $class); |
|
| 113 | + $this->assertEquals($groupId1, $result1->getGroupId()); |
|
| 114 | + $this->assertEquals($class, $result1->getClass()); |
|
| 115 | + |
|
| 116 | + $result2 = $this->service->create($groupId2, $class); |
|
| 117 | + $this->assertEquals($groupId2, $result2->getGroupId()); |
|
| 118 | + $this->assertEquals($class, $result2->getClass()); |
|
| 119 | + } |
|
| 120 | + |
|
| 121 | + public function testCreateAllowsSameGroupDifferentClasses(): void { |
|
| 122 | + $groupId = 'testgroup'; |
|
| 123 | + $class1 = 'TestClass1'; |
|
| 124 | + $class2 = 'TestClass2'; |
|
| 125 | + |
|
| 126 | + // Mock that no duplicate exists for either class |
|
| 127 | + $this->mapper->expects($this->exactly(2)) |
|
| 128 | + ->method('findByGroupIdAndClass') |
|
| 129 | + ->willReturnCallback(function ($groupIdArg, $class) use ($groupId, $class1, $class2) { |
|
| 130 | + $this->assertEquals($groupId, $groupIdArg); |
|
| 131 | + $this->assertContains($class, [$class1, $class2]); |
|
| 132 | + throw new DoesNotExistException('Not found'); |
|
| 133 | + }); |
|
| 134 | + |
|
| 135 | + $expectedGroup1 = new AuthorizedGroup(); |
|
| 136 | + $expectedGroup1->setGroupId($groupId); |
|
| 137 | + $expectedGroup1->setClass($class1); |
|
| 138 | + $expectedGroup1->setId(123); |
|
| 139 | + |
|
| 140 | + $expectedGroup2 = new AuthorizedGroup(); |
|
| 141 | + $expectedGroup2->setGroupId($groupId); |
|
| 142 | + $expectedGroup2->setClass($class2); |
|
| 143 | + $expectedGroup2->setId(124); |
|
| 144 | + |
|
| 145 | + $this->mapper->expects($this->exactly(2)) |
|
| 146 | + ->method('insert') |
|
| 147 | + ->willReturnOnConsecutiveCalls($expectedGroup1, $expectedGroup2); |
|
| 148 | + |
|
| 149 | + // Both creations should succeed |
|
| 150 | + $result1 = $this->service->create($groupId, $class1); |
|
| 151 | + $result2 = $this->service->create($groupId, $class2); |
|
| 152 | + |
|
| 153 | + $this->assertEquals($groupId, $result1->getGroupId()); |
|
| 154 | + $this->assertEquals($groupId, $result2->getGroupId()); |
|
| 155 | + $this->assertEquals($class1, $result1->getClass()); |
|
| 156 | + $this->assertEquals($class2, $result2->getClass()); |
|
| 157 | + } |
|
| 158 | 158 | } |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | // Mock that no duplicate exists for group1 |
| 89 | 89 | $this->mapper->expects($this->exactly(2)) |
| 90 | 90 | ->method('findByGroupIdAndClass') |
| 91 | - ->willReturnCallback(function ($groupId, $classArg) use ($groupId1, $groupId2, $class) { |
|
| 91 | + ->willReturnCallback(function($groupId, $classArg) use ($groupId1, $groupId2, $class) { |
|
| 92 | 92 | $this->assertContains($groupId, [$groupId1, $groupId2]); |
| 93 | 93 | $this->assertEquals($class, $classArg); |
| 94 | 94 | throw new DoesNotExistException('Not found'); |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | // Mock that no duplicate exists for either class |
| 127 | 127 | $this->mapper->expects($this->exactly(2)) |
| 128 | 128 | ->method('findByGroupIdAndClass') |
| 129 | - ->willReturnCallback(function ($groupIdArg, $class) use ($groupId, $class1, $class2) { |
|
| 129 | + ->willReturnCallback(function($groupIdArg, $class) use ($groupId, $class1, $class2) { |
|
| 130 | 130 | $this->assertEquals($groupId, $groupIdArg); |
| 131 | 131 | $this->assertContains($class, [$class1, $class2]); |
| 132 | 132 | throw new DoesNotExistException('Not found'); |
@@ -22,127 +22,127 @@ |
||
| 22 | 22 | |
| 23 | 23 | class AddTest extends TestCase { |
| 24 | 24 | |
| 25 | - private IManager&MockObject $settingManager; |
|
| 26 | - private AuthorizedGroupService&MockObject $authorizedGroupService; |
|
| 27 | - private IGroupManager&MockObject $groupManager; |
|
| 28 | - private Add $command; |
|
| 29 | - private InputInterface&MockObject $input; |
|
| 30 | - private OutputInterface&MockObject $output; |
|
| 31 | - |
|
| 32 | - protected function setUp(): void { |
|
| 33 | - parent::setUp(); |
|
| 34 | - |
|
| 35 | - $this->settingManager = $this->createMock(IManager::class); |
|
| 36 | - $this->authorizedGroupService = $this->createMock(AuthorizedGroupService::class); |
|
| 37 | - $this->groupManager = $this->createMock(IGroupManager::class); |
|
| 38 | - |
|
| 39 | - $this->command = new Add( |
|
| 40 | - $this->settingManager, |
|
| 41 | - $this->authorizedGroupService, |
|
| 42 | - $this->groupManager |
|
| 43 | - ); |
|
| 44 | - |
|
| 45 | - $this->input = $this->createMock(InputInterface::class); |
|
| 46 | - $this->output = $this->createMock(OutputInterface::class); |
|
| 47 | - } |
|
| 48 | - |
|
| 49 | - public function testExecuteSuccessfulDelegation(): void { |
|
| 50 | - $settingClass = Server::class; |
|
| 51 | - $groupId = 'testgroup'; |
|
| 52 | - |
|
| 53 | - // Mock valid delegated settings class |
|
| 54 | - $this->input->expects($this->exactly(2)) |
|
| 55 | - ->method('getArgument') |
|
| 56 | - ->willReturnMap([ |
|
| 57 | - ['settingClass', $settingClass], |
|
| 58 | - ['groupId', $groupId] |
|
| 59 | - ]); |
|
| 60 | - |
|
| 61 | - // Mock group exists |
|
| 62 | - $this->groupManager->expects($this->once()) |
|
| 63 | - ->method('groupExists') |
|
| 64 | - ->with($groupId) |
|
| 65 | - ->willReturn(true); |
|
| 66 | - |
|
| 67 | - // Mock successful creation |
|
| 68 | - $authorizedGroup = new AuthorizedGroup(); |
|
| 69 | - $authorizedGroup->setGroupId($groupId); |
|
| 70 | - $authorizedGroup->setClass($settingClass); |
|
| 71 | - |
|
| 72 | - $this->authorizedGroupService->expects($this->once()) |
|
| 73 | - ->method('create') |
|
| 74 | - ->with($groupId, $settingClass) |
|
| 75 | - ->willReturn($authorizedGroup); |
|
| 76 | - |
|
| 77 | - $result = $this->command->execute($this->input, $this->output); |
|
| 78 | - |
|
| 79 | - $this->assertEquals(0, $result); |
|
| 80 | - } |
|
| 81 | - |
|
| 82 | - public function testExecuteHandlesDuplicateAssignment(): void { |
|
| 83 | - $settingClass = 'OCA\\Settings\\Settings\\Admin\\Server'; |
|
| 84 | - $groupId = 'testgroup'; |
|
| 85 | - |
|
| 86 | - // Mock valid delegated settings class |
|
| 87 | - $this->input->expects($this->exactly(2)) |
|
| 88 | - ->method('getArgument') |
|
| 89 | - ->willReturnMap([ |
|
| 90 | - ['settingClass', $settingClass], |
|
| 91 | - ['groupId', $groupId] |
|
| 92 | - ]); |
|
| 93 | - |
|
| 94 | - // Mock group exists |
|
| 95 | - $this->groupManager->expects($this->once()) |
|
| 96 | - ->method('groupExists') |
|
| 97 | - ->with($groupId) |
|
| 98 | - ->willReturn(true); |
|
| 99 | - |
|
| 100 | - // Mock ConflictException when trying to create duplicate |
|
| 101 | - $this->authorizedGroupService->expects($this->once()) |
|
| 102 | - ->method('create') |
|
| 103 | - ->with($groupId, $settingClass) |
|
| 104 | - ->willThrowException(new ConflictException('Group is already assigned to this class')); |
|
| 105 | - |
|
| 106 | - $result = $this->command->execute($this->input, $this->output); |
|
| 107 | - |
|
| 108 | - $this->assertEquals(4, $result, 'Duplicate assignment should return exit code 4'); |
|
| 109 | - } |
|
| 110 | - |
|
| 111 | - public function testExecuteInvalidSettingClass(): void { |
|
| 112 | - // Use a real class that exists but doesn't implement IDelegatedSettings |
|
| 113 | - $settingClass = 'stdClass'; |
|
| 114 | - |
|
| 115 | - $this->input->expects($this->once()) |
|
| 116 | - ->method('getArgument') |
|
| 117 | - ->with('settingClass') |
|
| 118 | - ->willReturn($settingClass); |
|
| 119 | - |
|
| 120 | - $result = $this->command->execute($this->input, $this->output); |
|
| 121 | - |
|
| 122 | - // Should return exit code 2 for invalid setting class |
|
| 123 | - $this->assertEquals(2, $result); |
|
| 124 | - } |
|
| 125 | - |
|
| 126 | - public function testExecuteNonExistentGroup(): void { |
|
| 127 | - $settingClass = Server::class; |
|
| 128 | - $groupId = 'nonexistentgroup'; |
|
| 129 | - |
|
| 130 | - $this->input->expects($this->exactly(2)) |
|
| 131 | - ->method('getArgument') |
|
| 132 | - ->willReturnMap([ |
|
| 133 | - ['settingClass', $settingClass], |
|
| 134 | - ['groupId', $groupId] |
|
| 135 | - ]); |
|
| 136 | - |
|
| 137 | - // Mock group does not exist |
|
| 138 | - $this->groupManager->expects($this->once()) |
|
| 139 | - ->method('groupExists') |
|
| 140 | - ->with($groupId) |
|
| 141 | - ->willReturn(false); |
|
| 142 | - |
|
| 143 | - $result = $this->command->execute($this->input, $this->output); |
|
| 144 | - |
|
| 145 | - // Should return exit code 3 for non-existent group |
|
| 146 | - $this->assertEquals(3, $result); |
|
| 147 | - } |
|
| 25 | + private IManager&MockObject $settingManager; |
|
| 26 | + private AuthorizedGroupService&MockObject $authorizedGroupService; |
|
| 27 | + private IGroupManager&MockObject $groupManager; |
|
| 28 | + private Add $command; |
|
| 29 | + private InputInterface&MockObject $input; |
|
| 30 | + private OutputInterface&MockObject $output; |
|
| 31 | + |
|
| 32 | + protected function setUp(): void { |
|
| 33 | + parent::setUp(); |
|
| 34 | + |
|
| 35 | + $this->settingManager = $this->createMock(IManager::class); |
|
| 36 | + $this->authorizedGroupService = $this->createMock(AuthorizedGroupService::class); |
|
| 37 | + $this->groupManager = $this->createMock(IGroupManager::class); |
|
| 38 | + |
|
| 39 | + $this->command = new Add( |
|
| 40 | + $this->settingManager, |
|
| 41 | + $this->authorizedGroupService, |
|
| 42 | + $this->groupManager |
|
| 43 | + ); |
|
| 44 | + |
|
| 45 | + $this->input = $this->createMock(InputInterface::class); |
|
| 46 | + $this->output = $this->createMock(OutputInterface::class); |
|
| 47 | + } |
|
| 48 | + |
|
| 49 | + public function testExecuteSuccessfulDelegation(): void { |
|
| 50 | + $settingClass = Server::class; |
|
| 51 | + $groupId = 'testgroup'; |
|
| 52 | + |
|
| 53 | + // Mock valid delegated settings class |
|
| 54 | + $this->input->expects($this->exactly(2)) |
|
| 55 | + ->method('getArgument') |
|
| 56 | + ->willReturnMap([ |
|
| 57 | + ['settingClass', $settingClass], |
|
| 58 | + ['groupId', $groupId] |
|
| 59 | + ]); |
|
| 60 | + |
|
| 61 | + // Mock group exists |
|
| 62 | + $this->groupManager->expects($this->once()) |
|
| 63 | + ->method('groupExists') |
|
| 64 | + ->with($groupId) |
|
| 65 | + ->willReturn(true); |
|
| 66 | + |
|
| 67 | + // Mock successful creation |
|
| 68 | + $authorizedGroup = new AuthorizedGroup(); |
|
| 69 | + $authorizedGroup->setGroupId($groupId); |
|
| 70 | + $authorizedGroup->setClass($settingClass); |
|
| 71 | + |
|
| 72 | + $this->authorizedGroupService->expects($this->once()) |
|
| 73 | + ->method('create') |
|
| 74 | + ->with($groupId, $settingClass) |
|
| 75 | + ->willReturn($authorizedGroup); |
|
| 76 | + |
|
| 77 | + $result = $this->command->execute($this->input, $this->output); |
|
| 78 | + |
|
| 79 | + $this->assertEquals(0, $result); |
|
| 80 | + } |
|
| 81 | + |
|
| 82 | + public function testExecuteHandlesDuplicateAssignment(): void { |
|
| 83 | + $settingClass = 'OCA\\Settings\\Settings\\Admin\\Server'; |
|
| 84 | + $groupId = 'testgroup'; |
|
| 85 | + |
|
| 86 | + // Mock valid delegated settings class |
|
| 87 | + $this->input->expects($this->exactly(2)) |
|
| 88 | + ->method('getArgument') |
|
| 89 | + ->willReturnMap([ |
|
| 90 | + ['settingClass', $settingClass], |
|
| 91 | + ['groupId', $groupId] |
|
| 92 | + ]); |
|
| 93 | + |
|
| 94 | + // Mock group exists |
|
| 95 | + $this->groupManager->expects($this->once()) |
|
| 96 | + ->method('groupExists') |
|
| 97 | + ->with($groupId) |
|
| 98 | + ->willReturn(true); |
|
| 99 | + |
|
| 100 | + // Mock ConflictException when trying to create duplicate |
|
| 101 | + $this->authorizedGroupService->expects($this->once()) |
|
| 102 | + ->method('create') |
|
| 103 | + ->with($groupId, $settingClass) |
|
| 104 | + ->willThrowException(new ConflictException('Group is already assigned to this class')); |
|
| 105 | + |
|
| 106 | + $result = $this->command->execute($this->input, $this->output); |
|
| 107 | + |
|
| 108 | + $this->assertEquals(4, $result, 'Duplicate assignment should return exit code 4'); |
|
| 109 | + } |
|
| 110 | + |
|
| 111 | + public function testExecuteInvalidSettingClass(): void { |
|
| 112 | + // Use a real class that exists but doesn't implement IDelegatedSettings |
|
| 113 | + $settingClass = 'stdClass'; |
|
| 114 | + |
|
| 115 | + $this->input->expects($this->once()) |
|
| 116 | + ->method('getArgument') |
|
| 117 | + ->with('settingClass') |
|
| 118 | + ->willReturn($settingClass); |
|
| 119 | + |
|
| 120 | + $result = $this->command->execute($this->input, $this->output); |
|
| 121 | + |
|
| 122 | + // Should return exit code 2 for invalid setting class |
|
| 123 | + $this->assertEquals(2, $result); |
|
| 124 | + } |
|
| 125 | + |
|
| 126 | + public function testExecuteNonExistentGroup(): void { |
|
| 127 | + $settingClass = Server::class; |
|
| 128 | + $groupId = 'nonexistentgroup'; |
|
| 129 | + |
|
| 130 | + $this->input->expects($this->exactly(2)) |
|
| 131 | + ->method('getArgument') |
|
| 132 | + ->willReturnMap([ |
|
| 133 | + ['settingClass', $settingClass], |
|
| 134 | + ['groupId', $groupId] |
|
| 135 | + ]); |
|
| 136 | + |
|
| 137 | + // Mock group does not exist |
|
| 138 | + $this->groupManager->expects($this->once()) |
|
| 139 | + ->method('groupExists') |
|
| 140 | + ->with($groupId) |
|
| 141 | + ->willReturn(false); |
|
| 142 | + |
|
| 143 | + $result = $this->command->execute($this->input, $this->output); |
|
| 144 | + |
|
| 145 | + // Should return exit code 3 for non-existent group |
|
| 146 | + $this->assertEquals(3, $result); |
|
| 147 | + } |
|
| 148 | 148 | } |
@@ -6,166 +6,166 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitSettings |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\Settings\\' => 13, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\Settings\\' => |
| 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\\Settings\\Activity\\GroupProvider' => __DIR__ . '/..' . '/../lib/Activity/GroupProvider.php', |
|
| 26 | - 'OCA\\Settings\\Activity\\GroupSetting' => __DIR__ . '/..' . '/../lib/Activity/GroupSetting.php', |
|
| 27 | - 'OCA\\Settings\\Activity\\Provider' => __DIR__ . '/..' . '/../lib/Activity/Provider.php', |
|
| 28 | - 'OCA\\Settings\\Activity\\SecurityFilter' => __DIR__ . '/..' . '/../lib/Activity/SecurityFilter.php', |
|
| 29 | - 'OCA\\Settings\\Activity\\SecurityProvider' => __DIR__ . '/..' . '/../lib/Activity/SecurityProvider.php', |
|
| 30 | - 'OCA\\Settings\\Activity\\SecuritySetting' => __DIR__ . '/..' . '/../lib/Activity/SecuritySetting.php', |
|
| 31 | - 'OCA\\Settings\\Activity\\Setting' => __DIR__ . '/..' . '/../lib/Activity/Setting.php', |
|
| 32 | - 'OCA\\Settings\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 33 | - 'OCA\\Settings\\BackgroundJobs\\VerifyUserData' => __DIR__ . '/..' . '/../lib/BackgroundJobs/VerifyUserData.php', |
|
| 34 | - 'OCA\\Settings\\Command\\AdminDelegation\\Add' => __DIR__ . '/..' . '/../lib/Command/AdminDelegation/Add.php', |
|
| 35 | - 'OCA\\Settings\\Command\\AdminDelegation\\Remove' => __DIR__ . '/..' . '/../lib/Command/AdminDelegation/Remove.php', |
|
| 36 | - 'OCA\\Settings\\Command\\AdminDelegation\\Show' => __DIR__ . '/..' . '/../lib/Command/AdminDelegation/Show.php', |
|
| 37 | - 'OCA\\Settings\\ConfigLexicon' => __DIR__ . '/..' . '/../lib/ConfigLexicon.php', |
|
| 38 | - 'OCA\\Settings\\Controller\\AISettingsController' => __DIR__ . '/..' . '/../lib/Controller/AISettingsController.php', |
|
| 39 | - 'OCA\\Settings\\Controller\\AdminSettingsController' => __DIR__ . '/..' . '/../lib/Controller/AdminSettingsController.php', |
|
| 40 | - 'OCA\\Settings\\Controller\\AppSettingsController' => __DIR__ . '/..' . '/../lib/Controller/AppSettingsController.php', |
|
| 41 | - 'OCA\\Settings\\Controller\\AuthSettingsController' => __DIR__ . '/..' . '/../lib/Controller/AuthSettingsController.php', |
|
| 42 | - 'OCA\\Settings\\Controller\\AuthorizedGroupController' => __DIR__ . '/..' . '/../lib/Controller/AuthorizedGroupController.php', |
|
| 43 | - 'OCA\\Settings\\Controller\\ChangePasswordController' => __DIR__ . '/..' . '/../lib/Controller/ChangePasswordController.php', |
|
| 44 | - 'OCA\\Settings\\Controller\\CheckSetupController' => __DIR__ . '/..' . '/../lib/Controller/CheckSetupController.php', |
|
| 45 | - 'OCA\\Settings\\Controller\\CommonSettingsTrait' => __DIR__ . '/..' . '/../lib/Controller/CommonSettingsTrait.php', |
|
| 46 | - 'OCA\\Settings\\Controller\\DeclarativeSettingsController' => __DIR__ . '/..' . '/../lib/Controller/DeclarativeSettingsController.php', |
|
| 47 | - 'OCA\\Settings\\Controller\\HelpController' => __DIR__ . '/..' . '/../lib/Controller/HelpController.php', |
|
| 48 | - 'OCA\\Settings\\Controller\\LogSettingsController' => __DIR__ . '/..' . '/../lib/Controller/LogSettingsController.php', |
|
| 49 | - 'OCA\\Settings\\Controller\\MailSettingsController' => __DIR__ . '/..' . '/../lib/Controller/MailSettingsController.php', |
|
| 50 | - 'OCA\\Settings\\Controller\\PersonalSettingsController' => __DIR__ . '/..' . '/../lib/Controller/PersonalSettingsController.php', |
|
| 51 | - 'OCA\\Settings\\Controller\\PresetController' => __DIR__ . '/..' . '/../lib/Controller/PresetController.php', |
|
| 52 | - 'OCA\\Settings\\Controller\\ReasonsController' => __DIR__ . '/..' . '/../lib/Controller/ReasonsController.php', |
|
| 53 | - 'OCA\\Settings\\Controller\\TwoFactorSettingsController' => __DIR__ . '/..' . '/../lib/Controller/TwoFactorSettingsController.php', |
|
| 54 | - 'OCA\\Settings\\Controller\\UsersController' => __DIR__ . '/..' . '/../lib/Controller/UsersController.php', |
|
| 55 | - 'OCA\\Settings\\Controller\\WebAuthnController' => __DIR__ . '/..' . '/../lib/Controller/WebAuthnController.php', |
|
| 56 | - 'OCA\\Settings\\Events\\BeforeTemplateRenderedEvent' => __DIR__ . '/..' . '/../lib/Events/BeforeTemplateRenderedEvent.php', |
|
| 57 | - 'OCA\\Settings\\Hooks' => __DIR__ . '/..' . '/../lib/Hooks.php', |
|
| 58 | - 'OCA\\Settings\\Listener\\AppPasswordCreatedActivityListener' => __DIR__ . '/..' . '/../lib/Listener/AppPasswordCreatedActivityListener.php', |
|
| 59 | - 'OCA\\Settings\\Listener\\GroupRemovedListener' => __DIR__ . '/..' . '/../lib/Listener/GroupRemovedListener.php', |
|
| 60 | - 'OCA\\Settings\\Listener\\MailProviderListener' => __DIR__ . '/..' . '/../lib/Listener/MailProviderListener.php', |
|
| 61 | - 'OCA\\Settings\\Listener\\UserAddedToGroupActivityListener' => __DIR__ . '/..' . '/../lib/Listener/UserAddedToGroupActivityListener.php', |
|
| 62 | - 'OCA\\Settings\\Listener\\UserRemovedFromGroupActivityListener' => __DIR__ . '/..' . '/../lib/Listener/UserRemovedFromGroupActivityListener.php', |
|
| 63 | - 'OCA\\Settings\\Mailer\\NewUserMailHelper' => __DIR__ . '/..' . '/../lib/Mailer/NewUserMailHelper.php', |
|
| 64 | - 'OCA\\Settings\\Middleware\\SubadminMiddleware' => __DIR__ . '/..' . '/../lib/Middleware/SubadminMiddleware.php', |
|
| 65 | - 'OCA\\Settings\\ResponseDefinitions' => __DIR__ . '/..' . '/../lib/ResponseDefinitions.php', |
|
| 66 | - 'OCA\\Settings\\Search\\AppSearch' => __DIR__ . '/..' . '/../lib/Search/AppSearch.php', |
|
| 67 | - 'OCA\\Settings\\Search\\SectionSearch' => __DIR__ . '/..' . '/../lib/Search/SectionSearch.php', |
|
| 68 | - 'OCA\\Settings\\Search\\UserSearch' => __DIR__ . '/..' . '/../lib/Search/UserSearch.php', |
|
| 69 | - 'OCA\\Settings\\Sections\\Admin\\Additional' => __DIR__ . '/..' . '/../lib/Sections/Admin/Additional.php', |
|
| 70 | - 'OCA\\Settings\\Sections\\Admin\\ArtificialIntelligence' => __DIR__ . '/..' . '/../lib/Sections/Admin/ArtificialIntelligence.php', |
|
| 71 | - 'OCA\\Settings\\Sections\\Admin\\Delegation' => __DIR__ . '/..' . '/../lib/Sections/Admin/Delegation.php', |
|
| 72 | - 'OCA\\Settings\\Sections\\Admin\\Groupware' => __DIR__ . '/..' . '/../lib/Sections/Admin/Groupware.php', |
|
| 73 | - 'OCA\\Settings\\Sections\\Admin\\Overview' => __DIR__ . '/..' . '/../lib/Sections/Admin/Overview.php', |
|
| 74 | - 'OCA\\Settings\\Sections\\Admin\\Presets' => __DIR__ . '/..' . '/../lib/Sections/Admin/Presets.php', |
|
| 75 | - 'OCA\\Settings\\Sections\\Admin\\Security' => __DIR__ . '/..' . '/../lib/Sections/Admin/Security.php', |
|
| 76 | - 'OCA\\Settings\\Sections\\Admin\\Server' => __DIR__ . '/..' . '/../lib/Sections/Admin/Server.php', |
|
| 77 | - 'OCA\\Settings\\Sections\\Admin\\Sharing' => __DIR__ . '/..' . '/../lib/Sections/Admin/Sharing.php', |
|
| 78 | - 'OCA\\Settings\\Sections\\Admin\\Users' => __DIR__ . '/..' . '/../lib/Sections/Admin/Users.php', |
|
| 79 | - 'OCA\\Settings\\Sections\\Personal\\Availability' => __DIR__ . '/..' . '/../lib/Sections/Personal/Availability.php', |
|
| 80 | - 'OCA\\Settings\\Sections\\Personal\\Calendar' => __DIR__ . '/..' . '/../lib/Sections/Personal/Calendar.php', |
|
| 81 | - 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => __DIR__ . '/..' . '/../lib/Sections/Personal/PersonalInfo.php', |
|
| 82 | - 'OCA\\Settings\\Sections\\Personal\\Security' => __DIR__ . '/..' . '/../lib/Sections/Personal/Security.php', |
|
| 83 | - 'OCA\\Settings\\Sections\\Personal\\SyncClients' => __DIR__ . '/..' . '/../lib/Sections/Personal/SyncClients.php', |
|
| 84 | - 'OCA\\Settings\\Service\\AuthorizedGroupService' => __DIR__ . '/..' . '/../lib/Service/AuthorizedGroupService.php', |
|
| 85 | - 'OCA\\Settings\\Service\\ConflictException' => __DIR__ . '/..' . '/../lib/Service/ConflictException.php', |
|
| 86 | - 'OCA\\Settings\\Service\\NotFoundException' => __DIR__ . '/..' . '/../lib/Service/NotFoundException.php', |
|
| 87 | - 'OCA\\Settings\\Service\\ServiceException' => __DIR__ . '/..' . '/../lib/Service/ServiceException.php', |
|
| 88 | - 'OCA\\Settings\\Settings\\Admin\\ArtificialIntelligence' => __DIR__ . '/..' . '/../lib/Settings/Admin/ArtificialIntelligence.php', |
|
| 89 | - 'OCA\\Settings\\Settings\\Admin\\Delegation' => __DIR__ . '/..' . '/../lib/Settings/Admin/Delegation.php', |
|
| 90 | - 'OCA\\Settings\\Settings\\Admin\\Mail' => __DIR__ . '/..' . '/../lib/Settings/Admin/Mail.php', |
|
| 91 | - 'OCA\\Settings\\Settings\\Admin\\MailProvider' => __DIR__ . '/..' . '/../lib/Settings/Admin/MailProvider.php', |
|
| 92 | - 'OCA\\Settings\\Settings\\Admin\\Overview' => __DIR__ . '/..' . '/../lib/Settings/Admin/Overview.php', |
|
| 93 | - 'OCA\\Settings\\Settings\\Admin\\Presets' => __DIR__ . '/..' . '/../lib/Settings/Admin/Presets.php', |
|
| 94 | - 'OCA\\Settings\\Settings\\Admin\\Security' => __DIR__ . '/..' . '/../lib/Settings/Admin/Security.php', |
|
| 95 | - 'OCA\\Settings\\Settings\\Admin\\Server' => __DIR__ . '/..' . '/../lib/Settings/Admin/Server.php', |
|
| 96 | - 'OCA\\Settings\\Settings\\Admin\\Sharing' => __DIR__ . '/..' . '/../lib/Settings/Admin/Sharing.php', |
|
| 97 | - 'OCA\\Settings\\Settings\\Admin\\Users' => __DIR__ . '/..' . '/../lib/Settings/Admin/Users.php', |
|
| 98 | - 'OCA\\Settings\\Settings\\Personal\\Additional' => __DIR__ . '/..' . '/../lib/Settings/Personal/Additional.php', |
|
| 99 | - 'OCA\\Settings\\Settings\\Personal\\PersonalInfo' => __DIR__ . '/..' . '/../lib/Settings/Personal/PersonalInfo.php', |
|
| 100 | - 'OCA\\Settings\\Settings\\Personal\\Security\\Authtokens' => __DIR__ . '/..' . '/../lib/Settings/Personal/Security/Authtokens.php', |
|
| 101 | - 'OCA\\Settings\\Settings\\Personal\\Security\\Password' => __DIR__ . '/..' . '/../lib/Settings/Personal/Security/Password.php', |
|
| 102 | - 'OCA\\Settings\\Settings\\Personal\\Security\\TwoFactor' => __DIR__ . '/..' . '/../lib/Settings/Personal/Security/TwoFactor.php', |
|
| 103 | - 'OCA\\Settings\\Settings\\Personal\\Security\\WebAuthn' => __DIR__ . '/..' . '/../lib/Settings/Personal/Security/WebAuthn.php', |
|
| 104 | - 'OCA\\Settings\\Settings\\Personal\\ServerDevNotice' => __DIR__ . '/..' . '/../lib/Settings/Personal/ServerDevNotice.php', |
|
| 105 | - 'OCA\\Settings\\SetupChecks\\AllowedAdminRanges' => __DIR__ . '/..' . '/../lib/SetupChecks/AllowedAdminRanges.php', |
|
| 106 | - 'OCA\\Settings\\SetupChecks\\AppDirsWithDifferentOwner' => __DIR__ . '/..' . '/../lib/SetupChecks/AppDirsWithDifferentOwner.php', |
|
| 107 | - 'OCA\\Settings\\SetupChecks\\BruteForceThrottler' => __DIR__ . '/..' . '/../lib/SetupChecks/BruteForceThrottler.php', |
|
| 108 | - 'OCA\\Settings\\SetupChecks\\CheckUserCertificates' => __DIR__ . '/..' . '/../lib/SetupChecks/CheckUserCertificates.php', |
|
| 109 | - 'OCA\\Settings\\SetupChecks\\CodeIntegrity' => __DIR__ . '/..' . '/../lib/SetupChecks/CodeIntegrity.php', |
|
| 110 | - 'OCA\\Settings\\SetupChecks\\CronErrors' => __DIR__ . '/..' . '/../lib/SetupChecks/CronErrors.php', |
|
| 111 | - 'OCA\\Settings\\SetupChecks\\CronInfo' => __DIR__ . '/..' . '/../lib/SetupChecks/CronInfo.php', |
|
| 112 | - 'OCA\\Settings\\SetupChecks\\DataDirectoryProtected' => __DIR__ . '/..' . '/../lib/SetupChecks/DataDirectoryProtected.php', |
|
| 113 | - 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingColumns' => __DIR__ . '/..' . '/../lib/SetupChecks/DatabaseHasMissingColumns.php', |
|
| 114 | - 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingIndices' => __DIR__ . '/..' . '/../lib/SetupChecks/DatabaseHasMissingIndices.php', |
|
| 115 | - 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingPrimaryKeys' => __DIR__ . '/..' . '/../lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php', |
|
| 116 | - 'OCA\\Settings\\SetupChecks\\DatabasePendingBigIntConversions' => __DIR__ . '/..' . '/../lib/SetupChecks/DatabasePendingBigIntConversions.php', |
|
| 117 | - 'OCA\\Settings\\SetupChecks\\DebugMode' => __DIR__ . '/..' . '/../lib/SetupChecks/DebugMode.php', |
|
| 118 | - 'OCA\\Settings\\SetupChecks\\DefaultPhoneRegionSet' => __DIR__ . '/..' . '/../lib/SetupChecks/DefaultPhoneRegionSet.php', |
|
| 119 | - 'OCA\\Settings\\SetupChecks\\EmailTestSuccessful' => __DIR__ . '/..' . '/../lib/SetupChecks/EmailTestSuccessful.php', |
|
| 120 | - 'OCA\\Settings\\SetupChecks\\FileLocking' => __DIR__ . '/..' . '/../lib/SetupChecks/FileLocking.php', |
|
| 121 | - 'OCA\\Settings\\SetupChecks\\ForwardedForHeaders' => __DIR__ . '/..' . '/../lib/SetupChecks/ForwardedForHeaders.php', |
|
| 122 | - 'OCA\\Settings\\SetupChecks\\HttpsUrlGeneration' => __DIR__ . '/..' . '/../lib/SetupChecks/HttpsUrlGeneration.php', |
|
| 123 | - 'OCA\\Settings\\SetupChecks\\InternetConnectivity' => __DIR__ . '/..' . '/../lib/SetupChecks/InternetConnectivity.php', |
|
| 124 | - 'OCA\\Settings\\SetupChecks\\JavaScriptModules' => __DIR__ . '/..' . '/../lib/SetupChecks/JavaScriptModules.php', |
|
| 125 | - 'OCA\\Settings\\SetupChecks\\JavaScriptSourceMaps' => __DIR__ . '/..' . '/../lib/SetupChecks/JavaScriptSourceMaps.php', |
|
| 126 | - 'OCA\\Settings\\SetupChecks\\LegacySSEKeyFormat' => __DIR__ . '/..' . '/../lib/SetupChecks/LegacySSEKeyFormat.php', |
|
| 127 | - 'OCA\\Settings\\SetupChecks\\LoggingLevel' => __DIR__ . '/..' . '/../lib/SetupChecks/LoggingLevel.php', |
|
| 128 | - 'OCA\\Settings\\SetupChecks\\MaintenanceWindowStart' => __DIR__ . '/..' . '/../lib/SetupChecks/MaintenanceWindowStart.php', |
|
| 129 | - 'OCA\\Settings\\SetupChecks\\MemcacheConfigured' => __DIR__ . '/..' . '/../lib/SetupChecks/MemcacheConfigured.php', |
|
| 130 | - 'OCA\\Settings\\SetupChecks\\MimeTypeMigrationAvailable' => __DIR__ . '/..' . '/../lib/SetupChecks/MimeTypeMigrationAvailable.php', |
|
| 131 | - 'OCA\\Settings\\SetupChecks\\MysqlRowFormat' => __DIR__ . '/..' . '/../lib/SetupChecks/MysqlRowFormat.php', |
|
| 132 | - 'OCA\\Settings\\SetupChecks\\MysqlUnicodeSupport' => __DIR__ . '/..' . '/../lib/SetupChecks/MysqlUnicodeSupport.php', |
|
| 133 | - 'OCA\\Settings\\SetupChecks\\OcxProviders' => __DIR__ . '/..' . '/../lib/SetupChecks/OcxProviders.php', |
|
| 134 | - 'OCA\\Settings\\SetupChecks\\OverwriteCliUrl' => __DIR__ . '/..' . '/../lib/SetupChecks/OverwriteCliUrl.php', |
|
| 135 | - 'OCA\\Settings\\SetupChecks\\PhpApcuConfig' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpApcuConfig.php', |
|
| 136 | - 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpDefaultCharset.php', |
|
| 137 | - 'OCA\\Settings\\SetupChecks\\PhpDisabledFunctions' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpDisabledFunctions.php', |
|
| 138 | - 'OCA\\Settings\\SetupChecks\\PhpFreetypeSupport' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpFreetypeSupport.php', |
|
| 139 | - 'OCA\\Settings\\SetupChecks\\PhpGetEnv' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpGetEnv.php', |
|
| 140 | - 'OCA\\Settings\\SetupChecks\\PhpMaxFileSize' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpMaxFileSize.php', |
|
| 141 | - 'OCA\\Settings\\SetupChecks\\PhpMemoryLimit' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpMemoryLimit.php', |
|
| 142 | - 'OCA\\Settings\\SetupChecks\\PhpModules' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpModules.php', |
|
| 143 | - 'OCA\\Settings\\SetupChecks\\PhpOpcacheSetup' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpOpcacheSetup.php', |
|
| 144 | - 'OCA\\Settings\\SetupChecks\\PhpOutdated' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpOutdated.php', |
|
| 145 | - 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering' => __DIR__ . '/..' . '/../lib/SetupChecks/PhpOutputBuffering.php', |
|
| 146 | - 'OCA\\Settings\\SetupChecks\\PushService' => __DIR__ . '/..' . '/../lib/SetupChecks/PushService.php', |
|
| 147 | - 'OCA\\Settings\\SetupChecks\\RandomnessSecure' => __DIR__ . '/..' . '/../lib/SetupChecks/RandomnessSecure.php', |
|
| 148 | - 'OCA\\Settings\\SetupChecks\\ReadOnlyConfig' => __DIR__ . '/..' . '/../lib/SetupChecks/ReadOnlyConfig.php', |
|
| 149 | - 'OCA\\Settings\\SetupChecks\\SchedulingTableSize' => __DIR__ . '/..' . '/../lib/SetupChecks/SchedulingTableSize.php', |
|
| 150 | - 'OCA\\Settings\\SetupChecks\\SecurityHeaders' => __DIR__ . '/..' . '/../lib/SetupChecks/SecurityHeaders.php', |
|
| 151 | - 'OCA\\Settings\\SetupChecks\\ServerIdConfig' => __DIR__ . '/..' . '/../lib/SetupChecks/ServerIdConfig.php', |
|
| 152 | - 'OCA\\Settings\\SetupChecks\\SupportedDatabase' => __DIR__ . '/..' . '/../lib/SetupChecks/SupportedDatabase.php', |
|
| 153 | - 'OCA\\Settings\\SetupChecks\\SystemIs64bit' => __DIR__ . '/..' . '/../lib/SetupChecks/SystemIs64bit.php', |
|
| 154 | - 'OCA\\Settings\\SetupChecks\\TaskProcessingPickupSpeed' => __DIR__ . '/..' . '/../lib/SetupChecks/TaskProcessingPickupSpeed.php', |
|
| 155 | - 'OCA\\Settings\\SetupChecks\\TaskProcessingSuccessRate' => __DIR__ . '/..' . '/../lib/SetupChecks/TaskProcessingSuccessRate.php', |
|
| 156 | - 'OCA\\Settings\\SetupChecks\\TempSpaceAvailable' => __DIR__ . '/..' . '/../lib/SetupChecks/TempSpaceAvailable.php', |
|
| 157 | - 'OCA\\Settings\\SetupChecks\\TransactionIsolation' => __DIR__ . '/..' . '/../lib/SetupChecks/TransactionIsolation.php', |
|
| 158 | - 'OCA\\Settings\\SetupChecks\\WellKnownUrls' => __DIR__ . '/..' . '/../lib/SetupChecks/WellKnownUrls.php', |
|
| 159 | - 'OCA\\Settings\\SetupChecks\\Woff2Loading' => __DIR__ . '/..' . '/../lib/SetupChecks/Woff2Loading.php', |
|
| 160 | - 'OCA\\Settings\\UserMigration\\AccountMigrator' => __DIR__ . '/..' . '/../lib/UserMigration/AccountMigrator.php', |
|
| 161 | - 'OCA\\Settings\\UserMigration\\AccountMigratorException' => __DIR__ . '/..' . '/../lib/UserMigration/AccountMigratorException.php', |
|
| 162 | - 'OCA\\Settings\\WellKnown\\ChangePasswordHandler' => __DIR__ . '/..' . '/../lib/WellKnown/ChangePasswordHandler.php', |
|
| 163 | - 'OCA\\Settings\\WellKnown\\SecurityTxtHandler' => __DIR__ . '/..' . '/../lib/WellKnown/SecurityTxtHandler.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
| 25 | + 'OCA\\Settings\\Activity\\GroupProvider' => __DIR__.'/..'.'/../lib/Activity/GroupProvider.php', |
|
| 26 | + 'OCA\\Settings\\Activity\\GroupSetting' => __DIR__.'/..'.'/../lib/Activity/GroupSetting.php', |
|
| 27 | + 'OCA\\Settings\\Activity\\Provider' => __DIR__.'/..'.'/../lib/Activity/Provider.php', |
|
| 28 | + 'OCA\\Settings\\Activity\\SecurityFilter' => __DIR__.'/..'.'/../lib/Activity/SecurityFilter.php', |
|
| 29 | + 'OCA\\Settings\\Activity\\SecurityProvider' => __DIR__.'/..'.'/../lib/Activity/SecurityProvider.php', |
|
| 30 | + 'OCA\\Settings\\Activity\\SecuritySetting' => __DIR__.'/..'.'/../lib/Activity/SecuritySetting.php', |
|
| 31 | + 'OCA\\Settings\\Activity\\Setting' => __DIR__.'/..'.'/../lib/Activity/Setting.php', |
|
| 32 | + 'OCA\\Settings\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 33 | + 'OCA\\Settings\\BackgroundJobs\\VerifyUserData' => __DIR__.'/..'.'/../lib/BackgroundJobs/VerifyUserData.php', |
|
| 34 | + 'OCA\\Settings\\Command\\AdminDelegation\\Add' => __DIR__.'/..'.'/../lib/Command/AdminDelegation/Add.php', |
|
| 35 | + 'OCA\\Settings\\Command\\AdminDelegation\\Remove' => __DIR__.'/..'.'/../lib/Command/AdminDelegation/Remove.php', |
|
| 36 | + 'OCA\\Settings\\Command\\AdminDelegation\\Show' => __DIR__.'/..'.'/../lib/Command/AdminDelegation/Show.php', |
|
| 37 | + 'OCA\\Settings\\ConfigLexicon' => __DIR__.'/..'.'/../lib/ConfigLexicon.php', |
|
| 38 | + 'OCA\\Settings\\Controller\\AISettingsController' => __DIR__.'/..'.'/../lib/Controller/AISettingsController.php', |
|
| 39 | + 'OCA\\Settings\\Controller\\AdminSettingsController' => __DIR__.'/..'.'/../lib/Controller/AdminSettingsController.php', |
|
| 40 | + 'OCA\\Settings\\Controller\\AppSettingsController' => __DIR__.'/..'.'/../lib/Controller/AppSettingsController.php', |
|
| 41 | + 'OCA\\Settings\\Controller\\AuthSettingsController' => __DIR__.'/..'.'/../lib/Controller/AuthSettingsController.php', |
|
| 42 | + 'OCA\\Settings\\Controller\\AuthorizedGroupController' => __DIR__.'/..'.'/../lib/Controller/AuthorizedGroupController.php', |
|
| 43 | + 'OCA\\Settings\\Controller\\ChangePasswordController' => __DIR__.'/..'.'/../lib/Controller/ChangePasswordController.php', |
|
| 44 | + 'OCA\\Settings\\Controller\\CheckSetupController' => __DIR__.'/..'.'/../lib/Controller/CheckSetupController.php', |
|
| 45 | + 'OCA\\Settings\\Controller\\CommonSettingsTrait' => __DIR__.'/..'.'/../lib/Controller/CommonSettingsTrait.php', |
|
| 46 | + 'OCA\\Settings\\Controller\\DeclarativeSettingsController' => __DIR__.'/..'.'/../lib/Controller/DeclarativeSettingsController.php', |
|
| 47 | + 'OCA\\Settings\\Controller\\HelpController' => __DIR__.'/..'.'/../lib/Controller/HelpController.php', |
|
| 48 | + 'OCA\\Settings\\Controller\\LogSettingsController' => __DIR__.'/..'.'/../lib/Controller/LogSettingsController.php', |
|
| 49 | + 'OCA\\Settings\\Controller\\MailSettingsController' => __DIR__.'/..'.'/../lib/Controller/MailSettingsController.php', |
|
| 50 | + 'OCA\\Settings\\Controller\\PersonalSettingsController' => __DIR__.'/..'.'/../lib/Controller/PersonalSettingsController.php', |
|
| 51 | + 'OCA\\Settings\\Controller\\PresetController' => __DIR__.'/..'.'/../lib/Controller/PresetController.php', |
|
| 52 | + 'OCA\\Settings\\Controller\\ReasonsController' => __DIR__.'/..'.'/../lib/Controller/ReasonsController.php', |
|
| 53 | + 'OCA\\Settings\\Controller\\TwoFactorSettingsController' => __DIR__.'/..'.'/../lib/Controller/TwoFactorSettingsController.php', |
|
| 54 | + 'OCA\\Settings\\Controller\\UsersController' => __DIR__.'/..'.'/../lib/Controller/UsersController.php', |
|
| 55 | + 'OCA\\Settings\\Controller\\WebAuthnController' => __DIR__.'/..'.'/../lib/Controller/WebAuthnController.php', |
|
| 56 | + 'OCA\\Settings\\Events\\BeforeTemplateRenderedEvent' => __DIR__.'/..'.'/../lib/Events/BeforeTemplateRenderedEvent.php', |
|
| 57 | + 'OCA\\Settings\\Hooks' => __DIR__.'/..'.'/../lib/Hooks.php', |
|
| 58 | + 'OCA\\Settings\\Listener\\AppPasswordCreatedActivityListener' => __DIR__.'/..'.'/../lib/Listener/AppPasswordCreatedActivityListener.php', |
|
| 59 | + 'OCA\\Settings\\Listener\\GroupRemovedListener' => __DIR__.'/..'.'/../lib/Listener/GroupRemovedListener.php', |
|
| 60 | + 'OCA\\Settings\\Listener\\MailProviderListener' => __DIR__.'/..'.'/../lib/Listener/MailProviderListener.php', |
|
| 61 | + 'OCA\\Settings\\Listener\\UserAddedToGroupActivityListener' => __DIR__.'/..'.'/../lib/Listener/UserAddedToGroupActivityListener.php', |
|
| 62 | + 'OCA\\Settings\\Listener\\UserRemovedFromGroupActivityListener' => __DIR__.'/..'.'/../lib/Listener/UserRemovedFromGroupActivityListener.php', |
|
| 63 | + 'OCA\\Settings\\Mailer\\NewUserMailHelper' => __DIR__.'/..'.'/../lib/Mailer/NewUserMailHelper.php', |
|
| 64 | + 'OCA\\Settings\\Middleware\\SubadminMiddleware' => __DIR__.'/..'.'/../lib/Middleware/SubadminMiddleware.php', |
|
| 65 | + 'OCA\\Settings\\ResponseDefinitions' => __DIR__.'/..'.'/../lib/ResponseDefinitions.php', |
|
| 66 | + 'OCA\\Settings\\Search\\AppSearch' => __DIR__.'/..'.'/../lib/Search/AppSearch.php', |
|
| 67 | + 'OCA\\Settings\\Search\\SectionSearch' => __DIR__.'/..'.'/../lib/Search/SectionSearch.php', |
|
| 68 | + 'OCA\\Settings\\Search\\UserSearch' => __DIR__.'/..'.'/../lib/Search/UserSearch.php', |
|
| 69 | + 'OCA\\Settings\\Sections\\Admin\\Additional' => __DIR__.'/..'.'/../lib/Sections/Admin/Additional.php', |
|
| 70 | + 'OCA\\Settings\\Sections\\Admin\\ArtificialIntelligence' => __DIR__.'/..'.'/../lib/Sections/Admin/ArtificialIntelligence.php', |
|
| 71 | + 'OCA\\Settings\\Sections\\Admin\\Delegation' => __DIR__.'/..'.'/../lib/Sections/Admin/Delegation.php', |
|
| 72 | + 'OCA\\Settings\\Sections\\Admin\\Groupware' => __DIR__.'/..'.'/../lib/Sections/Admin/Groupware.php', |
|
| 73 | + 'OCA\\Settings\\Sections\\Admin\\Overview' => __DIR__.'/..'.'/../lib/Sections/Admin/Overview.php', |
|
| 74 | + 'OCA\\Settings\\Sections\\Admin\\Presets' => __DIR__.'/..'.'/../lib/Sections/Admin/Presets.php', |
|
| 75 | + 'OCA\\Settings\\Sections\\Admin\\Security' => __DIR__.'/..'.'/../lib/Sections/Admin/Security.php', |
|
| 76 | + 'OCA\\Settings\\Sections\\Admin\\Server' => __DIR__.'/..'.'/../lib/Sections/Admin/Server.php', |
|
| 77 | + 'OCA\\Settings\\Sections\\Admin\\Sharing' => __DIR__.'/..'.'/../lib/Sections/Admin/Sharing.php', |
|
| 78 | + 'OCA\\Settings\\Sections\\Admin\\Users' => __DIR__.'/..'.'/../lib/Sections/Admin/Users.php', |
|
| 79 | + 'OCA\\Settings\\Sections\\Personal\\Availability' => __DIR__.'/..'.'/../lib/Sections/Personal/Availability.php', |
|
| 80 | + 'OCA\\Settings\\Sections\\Personal\\Calendar' => __DIR__.'/..'.'/../lib/Sections/Personal/Calendar.php', |
|
| 81 | + 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => __DIR__.'/..'.'/../lib/Sections/Personal/PersonalInfo.php', |
|
| 82 | + 'OCA\\Settings\\Sections\\Personal\\Security' => __DIR__.'/..'.'/../lib/Sections/Personal/Security.php', |
|
| 83 | + 'OCA\\Settings\\Sections\\Personal\\SyncClients' => __DIR__.'/..'.'/../lib/Sections/Personal/SyncClients.php', |
|
| 84 | + 'OCA\\Settings\\Service\\AuthorizedGroupService' => __DIR__.'/..'.'/../lib/Service/AuthorizedGroupService.php', |
|
| 85 | + 'OCA\\Settings\\Service\\ConflictException' => __DIR__.'/..'.'/../lib/Service/ConflictException.php', |
|
| 86 | + 'OCA\\Settings\\Service\\NotFoundException' => __DIR__.'/..'.'/../lib/Service/NotFoundException.php', |
|
| 87 | + 'OCA\\Settings\\Service\\ServiceException' => __DIR__.'/..'.'/../lib/Service/ServiceException.php', |
|
| 88 | + 'OCA\\Settings\\Settings\\Admin\\ArtificialIntelligence' => __DIR__.'/..'.'/../lib/Settings/Admin/ArtificialIntelligence.php', |
|
| 89 | + 'OCA\\Settings\\Settings\\Admin\\Delegation' => __DIR__.'/..'.'/../lib/Settings/Admin/Delegation.php', |
|
| 90 | + 'OCA\\Settings\\Settings\\Admin\\Mail' => __DIR__.'/..'.'/../lib/Settings/Admin/Mail.php', |
|
| 91 | + 'OCA\\Settings\\Settings\\Admin\\MailProvider' => __DIR__.'/..'.'/../lib/Settings/Admin/MailProvider.php', |
|
| 92 | + 'OCA\\Settings\\Settings\\Admin\\Overview' => __DIR__.'/..'.'/../lib/Settings/Admin/Overview.php', |
|
| 93 | + 'OCA\\Settings\\Settings\\Admin\\Presets' => __DIR__.'/..'.'/../lib/Settings/Admin/Presets.php', |
|
| 94 | + 'OCA\\Settings\\Settings\\Admin\\Security' => __DIR__.'/..'.'/../lib/Settings/Admin/Security.php', |
|
| 95 | + 'OCA\\Settings\\Settings\\Admin\\Server' => __DIR__.'/..'.'/../lib/Settings/Admin/Server.php', |
|
| 96 | + 'OCA\\Settings\\Settings\\Admin\\Sharing' => __DIR__.'/..'.'/../lib/Settings/Admin/Sharing.php', |
|
| 97 | + 'OCA\\Settings\\Settings\\Admin\\Users' => __DIR__.'/..'.'/../lib/Settings/Admin/Users.php', |
|
| 98 | + 'OCA\\Settings\\Settings\\Personal\\Additional' => __DIR__.'/..'.'/../lib/Settings/Personal/Additional.php', |
|
| 99 | + 'OCA\\Settings\\Settings\\Personal\\PersonalInfo' => __DIR__.'/..'.'/../lib/Settings/Personal/PersonalInfo.php', |
|
| 100 | + 'OCA\\Settings\\Settings\\Personal\\Security\\Authtokens' => __DIR__.'/..'.'/../lib/Settings/Personal/Security/Authtokens.php', |
|
| 101 | + 'OCA\\Settings\\Settings\\Personal\\Security\\Password' => __DIR__.'/..'.'/../lib/Settings/Personal/Security/Password.php', |
|
| 102 | + 'OCA\\Settings\\Settings\\Personal\\Security\\TwoFactor' => __DIR__.'/..'.'/../lib/Settings/Personal/Security/TwoFactor.php', |
|
| 103 | + 'OCA\\Settings\\Settings\\Personal\\Security\\WebAuthn' => __DIR__.'/..'.'/../lib/Settings/Personal/Security/WebAuthn.php', |
|
| 104 | + 'OCA\\Settings\\Settings\\Personal\\ServerDevNotice' => __DIR__.'/..'.'/../lib/Settings/Personal/ServerDevNotice.php', |
|
| 105 | + 'OCA\\Settings\\SetupChecks\\AllowedAdminRanges' => __DIR__.'/..'.'/../lib/SetupChecks/AllowedAdminRanges.php', |
|
| 106 | + 'OCA\\Settings\\SetupChecks\\AppDirsWithDifferentOwner' => __DIR__.'/..'.'/../lib/SetupChecks/AppDirsWithDifferentOwner.php', |
|
| 107 | + 'OCA\\Settings\\SetupChecks\\BruteForceThrottler' => __DIR__.'/..'.'/../lib/SetupChecks/BruteForceThrottler.php', |
|
| 108 | + 'OCA\\Settings\\SetupChecks\\CheckUserCertificates' => __DIR__.'/..'.'/../lib/SetupChecks/CheckUserCertificates.php', |
|
| 109 | + 'OCA\\Settings\\SetupChecks\\CodeIntegrity' => __DIR__.'/..'.'/../lib/SetupChecks/CodeIntegrity.php', |
|
| 110 | + 'OCA\\Settings\\SetupChecks\\CronErrors' => __DIR__.'/..'.'/../lib/SetupChecks/CronErrors.php', |
|
| 111 | + 'OCA\\Settings\\SetupChecks\\CronInfo' => __DIR__.'/..'.'/../lib/SetupChecks/CronInfo.php', |
|
| 112 | + 'OCA\\Settings\\SetupChecks\\DataDirectoryProtected' => __DIR__.'/..'.'/../lib/SetupChecks/DataDirectoryProtected.php', |
|
| 113 | + 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingColumns' => __DIR__.'/..'.'/../lib/SetupChecks/DatabaseHasMissingColumns.php', |
|
| 114 | + 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingIndices' => __DIR__.'/..'.'/../lib/SetupChecks/DatabaseHasMissingIndices.php', |
|
| 115 | + 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingPrimaryKeys' => __DIR__.'/..'.'/../lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php', |
|
| 116 | + 'OCA\\Settings\\SetupChecks\\DatabasePendingBigIntConversions' => __DIR__.'/..'.'/../lib/SetupChecks/DatabasePendingBigIntConversions.php', |
|
| 117 | + 'OCA\\Settings\\SetupChecks\\DebugMode' => __DIR__.'/..'.'/../lib/SetupChecks/DebugMode.php', |
|
| 118 | + 'OCA\\Settings\\SetupChecks\\DefaultPhoneRegionSet' => __DIR__.'/..'.'/../lib/SetupChecks/DefaultPhoneRegionSet.php', |
|
| 119 | + 'OCA\\Settings\\SetupChecks\\EmailTestSuccessful' => __DIR__.'/..'.'/../lib/SetupChecks/EmailTestSuccessful.php', |
|
| 120 | + 'OCA\\Settings\\SetupChecks\\FileLocking' => __DIR__.'/..'.'/../lib/SetupChecks/FileLocking.php', |
|
| 121 | + 'OCA\\Settings\\SetupChecks\\ForwardedForHeaders' => __DIR__.'/..'.'/../lib/SetupChecks/ForwardedForHeaders.php', |
|
| 122 | + 'OCA\\Settings\\SetupChecks\\HttpsUrlGeneration' => __DIR__.'/..'.'/../lib/SetupChecks/HttpsUrlGeneration.php', |
|
| 123 | + 'OCA\\Settings\\SetupChecks\\InternetConnectivity' => __DIR__.'/..'.'/../lib/SetupChecks/InternetConnectivity.php', |
|
| 124 | + 'OCA\\Settings\\SetupChecks\\JavaScriptModules' => __DIR__.'/..'.'/../lib/SetupChecks/JavaScriptModules.php', |
|
| 125 | + 'OCA\\Settings\\SetupChecks\\JavaScriptSourceMaps' => __DIR__.'/..'.'/../lib/SetupChecks/JavaScriptSourceMaps.php', |
|
| 126 | + 'OCA\\Settings\\SetupChecks\\LegacySSEKeyFormat' => __DIR__.'/..'.'/../lib/SetupChecks/LegacySSEKeyFormat.php', |
|
| 127 | + 'OCA\\Settings\\SetupChecks\\LoggingLevel' => __DIR__.'/..'.'/../lib/SetupChecks/LoggingLevel.php', |
|
| 128 | + 'OCA\\Settings\\SetupChecks\\MaintenanceWindowStart' => __DIR__.'/..'.'/../lib/SetupChecks/MaintenanceWindowStart.php', |
|
| 129 | + 'OCA\\Settings\\SetupChecks\\MemcacheConfigured' => __DIR__.'/..'.'/../lib/SetupChecks/MemcacheConfigured.php', |
|
| 130 | + 'OCA\\Settings\\SetupChecks\\MimeTypeMigrationAvailable' => __DIR__.'/..'.'/../lib/SetupChecks/MimeTypeMigrationAvailable.php', |
|
| 131 | + 'OCA\\Settings\\SetupChecks\\MysqlRowFormat' => __DIR__.'/..'.'/../lib/SetupChecks/MysqlRowFormat.php', |
|
| 132 | + 'OCA\\Settings\\SetupChecks\\MysqlUnicodeSupport' => __DIR__.'/..'.'/../lib/SetupChecks/MysqlUnicodeSupport.php', |
|
| 133 | + 'OCA\\Settings\\SetupChecks\\OcxProviders' => __DIR__.'/..'.'/../lib/SetupChecks/OcxProviders.php', |
|
| 134 | + 'OCA\\Settings\\SetupChecks\\OverwriteCliUrl' => __DIR__.'/..'.'/../lib/SetupChecks/OverwriteCliUrl.php', |
|
| 135 | + 'OCA\\Settings\\SetupChecks\\PhpApcuConfig' => __DIR__.'/..'.'/../lib/SetupChecks/PhpApcuConfig.php', |
|
| 136 | + 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset' => __DIR__.'/..'.'/../lib/SetupChecks/PhpDefaultCharset.php', |
|
| 137 | + 'OCA\\Settings\\SetupChecks\\PhpDisabledFunctions' => __DIR__.'/..'.'/../lib/SetupChecks/PhpDisabledFunctions.php', |
|
| 138 | + 'OCA\\Settings\\SetupChecks\\PhpFreetypeSupport' => __DIR__.'/..'.'/../lib/SetupChecks/PhpFreetypeSupport.php', |
|
| 139 | + 'OCA\\Settings\\SetupChecks\\PhpGetEnv' => __DIR__.'/..'.'/../lib/SetupChecks/PhpGetEnv.php', |
|
| 140 | + 'OCA\\Settings\\SetupChecks\\PhpMaxFileSize' => __DIR__.'/..'.'/../lib/SetupChecks/PhpMaxFileSize.php', |
|
| 141 | + 'OCA\\Settings\\SetupChecks\\PhpMemoryLimit' => __DIR__.'/..'.'/../lib/SetupChecks/PhpMemoryLimit.php', |
|
| 142 | + 'OCA\\Settings\\SetupChecks\\PhpModules' => __DIR__.'/..'.'/../lib/SetupChecks/PhpModules.php', |
|
| 143 | + 'OCA\\Settings\\SetupChecks\\PhpOpcacheSetup' => __DIR__.'/..'.'/../lib/SetupChecks/PhpOpcacheSetup.php', |
|
| 144 | + 'OCA\\Settings\\SetupChecks\\PhpOutdated' => __DIR__.'/..'.'/../lib/SetupChecks/PhpOutdated.php', |
|
| 145 | + 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering' => __DIR__.'/..'.'/../lib/SetupChecks/PhpOutputBuffering.php', |
|
| 146 | + 'OCA\\Settings\\SetupChecks\\PushService' => __DIR__.'/..'.'/../lib/SetupChecks/PushService.php', |
|
| 147 | + 'OCA\\Settings\\SetupChecks\\RandomnessSecure' => __DIR__.'/..'.'/../lib/SetupChecks/RandomnessSecure.php', |
|
| 148 | + 'OCA\\Settings\\SetupChecks\\ReadOnlyConfig' => __DIR__.'/..'.'/../lib/SetupChecks/ReadOnlyConfig.php', |
|
| 149 | + 'OCA\\Settings\\SetupChecks\\SchedulingTableSize' => __DIR__.'/..'.'/../lib/SetupChecks/SchedulingTableSize.php', |
|
| 150 | + 'OCA\\Settings\\SetupChecks\\SecurityHeaders' => __DIR__.'/..'.'/../lib/SetupChecks/SecurityHeaders.php', |
|
| 151 | + 'OCA\\Settings\\SetupChecks\\ServerIdConfig' => __DIR__.'/..'.'/../lib/SetupChecks/ServerIdConfig.php', |
|
| 152 | + 'OCA\\Settings\\SetupChecks\\SupportedDatabase' => __DIR__.'/..'.'/../lib/SetupChecks/SupportedDatabase.php', |
|
| 153 | + 'OCA\\Settings\\SetupChecks\\SystemIs64bit' => __DIR__.'/..'.'/../lib/SetupChecks/SystemIs64bit.php', |
|
| 154 | + 'OCA\\Settings\\SetupChecks\\TaskProcessingPickupSpeed' => __DIR__.'/..'.'/../lib/SetupChecks/TaskProcessingPickupSpeed.php', |
|
| 155 | + 'OCA\\Settings\\SetupChecks\\TaskProcessingSuccessRate' => __DIR__.'/..'.'/../lib/SetupChecks/TaskProcessingSuccessRate.php', |
|
| 156 | + 'OCA\\Settings\\SetupChecks\\TempSpaceAvailable' => __DIR__.'/..'.'/../lib/SetupChecks/TempSpaceAvailable.php', |
|
| 157 | + 'OCA\\Settings\\SetupChecks\\TransactionIsolation' => __DIR__.'/..'.'/../lib/SetupChecks/TransactionIsolation.php', |
|
| 158 | + 'OCA\\Settings\\SetupChecks\\WellKnownUrls' => __DIR__.'/..'.'/../lib/SetupChecks/WellKnownUrls.php', |
|
| 159 | + 'OCA\\Settings\\SetupChecks\\Woff2Loading' => __DIR__.'/..'.'/../lib/SetupChecks/Woff2Loading.php', |
|
| 160 | + 'OCA\\Settings\\UserMigration\\AccountMigrator' => __DIR__.'/..'.'/../lib/UserMigration/AccountMigrator.php', |
|
| 161 | + 'OCA\\Settings\\UserMigration\\AccountMigratorException' => __DIR__.'/..'.'/../lib/UserMigration/AccountMigratorException.php', |
|
| 162 | + 'OCA\\Settings\\WellKnown\\ChangePasswordHandler' => __DIR__.'/..'.'/../lib/WellKnown/ChangePasswordHandler.php', |
|
| 163 | + 'OCA\\Settings\\WellKnown\\SecurityTxtHandler' => __DIR__.'/..'.'/../lib/WellKnown/SecurityTxtHandler.php', |
|
| 164 | 164 | ); |
| 165 | 165 | |
| 166 | 166 | public static function getInitializer(ClassLoader $loader) |
| 167 | 167 | { |
| 168 | - return \Closure::bind(function () use ($loader) { |
|
| 168 | + return \Closure::bind(function() use ($loader) { |
|
| 169 | 169 | $loader->prefixLengthsPsr4 = ComposerStaticInitSettings::$prefixLengthsPsr4; |
| 170 | 170 | $loader->prefixDirsPsr4 = ComposerStaticInitSettings::$prefixDirsPsr4; |
| 171 | 171 | $loader->classMap = ComposerStaticInitSettings::$classMap; |
@@ -6,144 +6,144 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
| 10 | - 'OCA\\Settings\\Activity\\GroupProvider' => $baseDir . '/../lib/Activity/GroupProvider.php', |
|
| 11 | - 'OCA\\Settings\\Activity\\GroupSetting' => $baseDir . '/../lib/Activity/GroupSetting.php', |
|
| 12 | - 'OCA\\Settings\\Activity\\Provider' => $baseDir . '/../lib/Activity/Provider.php', |
|
| 13 | - 'OCA\\Settings\\Activity\\SecurityFilter' => $baseDir . '/../lib/Activity/SecurityFilter.php', |
|
| 14 | - 'OCA\\Settings\\Activity\\SecurityProvider' => $baseDir . '/../lib/Activity/SecurityProvider.php', |
|
| 15 | - 'OCA\\Settings\\Activity\\SecuritySetting' => $baseDir . '/../lib/Activity/SecuritySetting.php', |
|
| 16 | - 'OCA\\Settings\\Activity\\Setting' => $baseDir . '/../lib/Activity/Setting.php', |
|
| 17 | - 'OCA\\Settings\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 18 | - 'OCA\\Settings\\BackgroundJobs\\VerifyUserData' => $baseDir . '/../lib/BackgroundJobs/VerifyUserData.php', |
|
| 19 | - 'OCA\\Settings\\Command\\AdminDelegation\\Add' => $baseDir . '/../lib/Command/AdminDelegation/Add.php', |
|
| 20 | - 'OCA\\Settings\\Command\\AdminDelegation\\Remove' => $baseDir . '/../lib/Command/AdminDelegation/Remove.php', |
|
| 21 | - 'OCA\\Settings\\Command\\AdminDelegation\\Show' => $baseDir . '/../lib/Command/AdminDelegation/Show.php', |
|
| 22 | - 'OCA\\Settings\\ConfigLexicon' => $baseDir . '/../lib/ConfigLexicon.php', |
|
| 23 | - 'OCA\\Settings\\Controller\\AISettingsController' => $baseDir . '/../lib/Controller/AISettingsController.php', |
|
| 24 | - 'OCA\\Settings\\Controller\\AdminSettingsController' => $baseDir . '/../lib/Controller/AdminSettingsController.php', |
|
| 25 | - 'OCA\\Settings\\Controller\\AppSettingsController' => $baseDir . '/../lib/Controller/AppSettingsController.php', |
|
| 26 | - 'OCA\\Settings\\Controller\\AuthSettingsController' => $baseDir . '/../lib/Controller/AuthSettingsController.php', |
|
| 27 | - 'OCA\\Settings\\Controller\\AuthorizedGroupController' => $baseDir . '/../lib/Controller/AuthorizedGroupController.php', |
|
| 28 | - 'OCA\\Settings\\Controller\\ChangePasswordController' => $baseDir . '/../lib/Controller/ChangePasswordController.php', |
|
| 29 | - 'OCA\\Settings\\Controller\\CheckSetupController' => $baseDir . '/../lib/Controller/CheckSetupController.php', |
|
| 30 | - 'OCA\\Settings\\Controller\\CommonSettingsTrait' => $baseDir . '/../lib/Controller/CommonSettingsTrait.php', |
|
| 31 | - 'OCA\\Settings\\Controller\\DeclarativeSettingsController' => $baseDir . '/../lib/Controller/DeclarativeSettingsController.php', |
|
| 32 | - 'OCA\\Settings\\Controller\\HelpController' => $baseDir . '/../lib/Controller/HelpController.php', |
|
| 33 | - 'OCA\\Settings\\Controller\\LogSettingsController' => $baseDir . '/../lib/Controller/LogSettingsController.php', |
|
| 34 | - 'OCA\\Settings\\Controller\\MailSettingsController' => $baseDir . '/../lib/Controller/MailSettingsController.php', |
|
| 35 | - 'OCA\\Settings\\Controller\\PersonalSettingsController' => $baseDir . '/../lib/Controller/PersonalSettingsController.php', |
|
| 36 | - 'OCA\\Settings\\Controller\\PresetController' => $baseDir . '/../lib/Controller/PresetController.php', |
|
| 37 | - 'OCA\\Settings\\Controller\\ReasonsController' => $baseDir . '/../lib/Controller/ReasonsController.php', |
|
| 38 | - 'OCA\\Settings\\Controller\\TwoFactorSettingsController' => $baseDir . '/../lib/Controller/TwoFactorSettingsController.php', |
|
| 39 | - 'OCA\\Settings\\Controller\\UsersController' => $baseDir . '/../lib/Controller/UsersController.php', |
|
| 40 | - 'OCA\\Settings\\Controller\\WebAuthnController' => $baseDir . '/../lib/Controller/WebAuthnController.php', |
|
| 41 | - 'OCA\\Settings\\Events\\BeforeTemplateRenderedEvent' => $baseDir . '/../lib/Events/BeforeTemplateRenderedEvent.php', |
|
| 42 | - 'OCA\\Settings\\Hooks' => $baseDir . '/../lib/Hooks.php', |
|
| 43 | - 'OCA\\Settings\\Listener\\AppPasswordCreatedActivityListener' => $baseDir . '/../lib/Listener/AppPasswordCreatedActivityListener.php', |
|
| 44 | - 'OCA\\Settings\\Listener\\GroupRemovedListener' => $baseDir . '/../lib/Listener/GroupRemovedListener.php', |
|
| 45 | - 'OCA\\Settings\\Listener\\MailProviderListener' => $baseDir . '/../lib/Listener/MailProviderListener.php', |
|
| 46 | - 'OCA\\Settings\\Listener\\UserAddedToGroupActivityListener' => $baseDir . '/../lib/Listener/UserAddedToGroupActivityListener.php', |
|
| 47 | - 'OCA\\Settings\\Listener\\UserRemovedFromGroupActivityListener' => $baseDir . '/../lib/Listener/UserRemovedFromGroupActivityListener.php', |
|
| 48 | - 'OCA\\Settings\\Mailer\\NewUserMailHelper' => $baseDir . '/../lib/Mailer/NewUserMailHelper.php', |
|
| 49 | - 'OCA\\Settings\\Middleware\\SubadminMiddleware' => $baseDir . '/../lib/Middleware/SubadminMiddleware.php', |
|
| 50 | - 'OCA\\Settings\\ResponseDefinitions' => $baseDir . '/../lib/ResponseDefinitions.php', |
|
| 51 | - 'OCA\\Settings\\Search\\AppSearch' => $baseDir . '/../lib/Search/AppSearch.php', |
|
| 52 | - 'OCA\\Settings\\Search\\SectionSearch' => $baseDir . '/../lib/Search/SectionSearch.php', |
|
| 53 | - 'OCA\\Settings\\Search\\UserSearch' => $baseDir . '/../lib/Search/UserSearch.php', |
|
| 54 | - 'OCA\\Settings\\Sections\\Admin\\Additional' => $baseDir . '/../lib/Sections/Admin/Additional.php', |
|
| 55 | - 'OCA\\Settings\\Sections\\Admin\\ArtificialIntelligence' => $baseDir . '/../lib/Sections/Admin/ArtificialIntelligence.php', |
|
| 56 | - 'OCA\\Settings\\Sections\\Admin\\Delegation' => $baseDir . '/../lib/Sections/Admin/Delegation.php', |
|
| 57 | - 'OCA\\Settings\\Sections\\Admin\\Groupware' => $baseDir . '/../lib/Sections/Admin/Groupware.php', |
|
| 58 | - 'OCA\\Settings\\Sections\\Admin\\Overview' => $baseDir . '/../lib/Sections/Admin/Overview.php', |
|
| 59 | - 'OCA\\Settings\\Sections\\Admin\\Presets' => $baseDir . '/../lib/Sections/Admin/Presets.php', |
|
| 60 | - 'OCA\\Settings\\Sections\\Admin\\Security' => $baseDir . '/../lib/Sections/Admin/Security.php', |
|
| 61 | - 'OCA\\Settings\\Sections\\Admin\\Server' => $baseDir . '/../lib/Sections/Admin/Server.php', |
|
| 62 | - 'OCA\\Settings\\Sections\\Admin\\Sharing' => $baseDir . '/../lib/Sections/Admin/Sharing.php', |
|
| 63 | - 'OCA\\Settings\\Sections\\Admin\\Users' => $baseDir . '/../lib/Sections/Admin/Users.php', |
|
| 64 | - 'OCA\\Settings\\Sections\\Personal\\Availability' => $baseDir . '/../lib/Sections/Personal/Availability.php', |
|
| 65 | - 'OCA\\Settings\\Sections\\Personal\\Calendar' => $baseDir . '/../lib/Sections/Personal/Calendar.php', |
|
| 66 | - 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => $baseDir . '/../lib/Sections/Personal/PersonalInfo.php', |
|
| 67 | - 'OCA\\Settings\\Sections\\Personal\\Security' => $baseDir . '/../lib/Sections/Personal/Security.php', |
|
| 68 | - 'OCA\\Settings\\Sections\\Personal\\SyncClients' => $baseDir . '/../lib/Sections/Personal/SyncClients.php', |
|
| 69 | - 'OCA\\Settings\\Service\\AuthorizedGroupService' => $baseDir . '/../lib/Service/AuthorizedGroupService.php', |
|
| 70 | - 'OCA\\Settings\\Service\\ConflictException' => $baseDir . '/../lib/Service/ConflictException.php', |
|
| 71 | - 'OCA\\Settings\\Service\\NotFoundException' => $baseDir . '/../lib/Service/NotFoundException.php', |
|
| 72 | - 'OCA\\Settings\\Service\\ServiceException' => $baseDir . '/../lib/Service/ServiceException.php', |
|
| 73 | - 'OCA\\Settings\\Settings\\Admin\\ArtificialIntelligence' => $baseDir . '/../lib/Settings/Admin/ArtificialIntelligence.php', |
|
| 74 | - 'OCA\\Settings\\Settings\\Admin\\Delegation' => $baseDir . '/../lib/Settings/Admin/Delegation.php', |
|
| 75 | - 'OCA\\Settings\\Settings\\Admin\\Mail' => $baseDir . '/../lib/Settings/Admin/Mail.php', |
|
| 76 | - 'OCA\\Settings\\Settings\\Admin\\MailProvider' => $baseDir . '/../lib/Settings/Admin/MailProvider.php', |
|
| 77 | - 'OCA\\Settings\\Settings\\Admin\\Overview' => $baseDir . '/../lib/Settings/Admin/Overview.php', |
|
| 78 | - 'OCA\\Settings\\Settings\\Admin\\Presets' => $baseDir . '/../lib/Settings/Admin/Presets.php', |
|
| 79 | - 'OCA\\Settings\\Settings\\Admin\\Security' => $baseDir . '/../lib/Settings/Admin/Security.php', |
|
| 80 | - 'OCA\\Settings\\Settings\\Admin\\Server' => $baseDir . '/../lib/Settings/Admin/Server.php', |
|
| 81 | - 'OCA\\Settings\\Settings\\Admin\\Sharing' => $baseDir . '/../lib/Settings/Admin/Sharing.php', |
|
| 82 | - 'OCA\\Settings\\Settings\\Admin\\Users' => $baseDir . '/../lib/Settings/Admin/Users.php', |
|
| 83 | - 'OCA\\Settings\\Settings\\Personal\\Additional' => $baseDir . '/../lib/Settings/Personal/Additional.php', |
|
| 84 | - 'OCA\\Settings\\Settings\\Personal\\PersonalInfo' => $baseDir . '/../lib/Settings/Personal/PersonalInfo.php', |
|
| 85 | - 'OCA\\Settings\\Settings\\Personal\\Security\\Authtokens' => $baseDir . '/../lib/Settings/Personal/Security/Authtokens.php', |
|
| 86 | - 'OCA\\Settings\\Settings\\Personal\\Security\\Password' => $baseDir . '/../lib/Settings/Personal/Security/Password.php', |
|
| 87 | - 'OCA\\Settings\\Settings\\Personal\\Security\\TwoFactor' => $baseDir . '/../lib/Settings/Personal/Security/TwoFactor.php', |
|
| 88 | - 'OCA\\Settings\\Settings\\Personal\\Security\\WebAuthn' => $baseDir . '/../lib/Settings/Personal/Security/WebAuthn.php', |
|
| 89 | - 'OCA\\Settings\\Settings\\Personal\\ServerDevNotice' => $baseDir . '/../lib/Settings/Personal/ServerDevNotice.php', |
|
| 90 | - 'OCA\\Settings\\SetupChecks\\AllowedAdminRanges' => $baseDir . '/../lib/SetupChecks/AllowedAdminRanges.php', |
|
| 91 | - 'OCA\\Settings\\SetupChecks\\AppDirsWithDifferentOwner' => $baseDir . '/../lib/SetupChecks/AppDirsWithDifferentOwner.php', |
|
| 92 | - 'OCA\\Settings\\SetupChecks\\BruteForceThrottler' => $baseDir . '/../lib/SetupChecks/BruteForceThrottler.php', |
|
| 93 | - 'OCA\\Settings\\SetupChecks\\CheckUserCertificates' => $baseDir . '/../lib/SetupChecks/CheckUserCertificates.php', |
|
| 94 | - 'OCA\\Settings\\SetupChecks\\CodeIntegrity' => $baseDir . '/../lib/SetupChecks/CodeIntegrity.php', |
|
| 95 | - 'OCA\\Settings\\SetupChecks\\CronErrors' => $baseDir . '/../lib/SetupChecks/CronErrors.php', |
|
| 96 | - 'OCA\\Settings\\SetupChecks\\CronInfo' => $baseDir . '/../lib/SetupChecks/CronInfo.php', |
|
| 97 | - 'OCA\\Settings\\SetupChecks\\DataDirectoryProtected' => $baseDir . '/../lib/SetupChecks/DataDirectoryProtected.php', |
|
| 98 | - 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingColumns' => $baseDir . '/../lib/SetupChecks/DatabaseHasMissingColumns.php', |
|
| 99 | - 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingIndices' => $baseDir . '/../lib/SetupChecks/DatabaseHasMissingIndices.php', |
|
| 100 | - 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingPrimaryKeys' => $baseDir . '/../lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php', |
|
| 101 | - 'OCA\\Settings\\SetupChecks\\DatabasePendingBigIntConversions' => $baseDir . '/../lib/SetupChecks/DatabasePendingBigIntConversions.php', |
|
| 102 | - 'OCA\\Settings\\SetupChecks\\DebugMode' => $baseDir . '/../lib/SetupChecks/DebugMode.php', |
|
| 103 | - 'OCA\\Settings\\SetupChecks\\DefaultPhoneRegionSet' => $baseDir . '/../lib/SetupChecks/DefaultPhoneRegionSet.php', |
|
| 104 | - 'OCA\\Settings\\SetupChecks\\EmailTestSuccessful' => $baseDir . '/../lib/SetupChecks/EmailTestSuccessful.php', |
|
| 105 | - 'OCA\\Settings\\SetupChecks\\FileLocking' => $baseDir . '/../lib/SetupChecks/FileLocking.php', |
|
| 106 | - 'OCA\\Settings\\SetupChecks\\ForwardedForHeaders' => $baseDir . '/../lib/SetupChecks/ForwardedForHeaders.php', |
|
| 107 | - 'OCA\\Settings\\SetupChecks\\HttpsUrlGeneration' => $baseDir . '/../lib/SetupChecks/HttpsUrlGeneration.php', |
|
| 108 | - 'OCA\\Settings\\SetupChecks\\InternetConnectivity' => $baseDir . '/../lib/SetupChecks/InternetConnectivity.php', |
|
| 109 | - 'OCA\\Settings\\SetupChecks\\JavaScriptModules' => $baseDir . '/../lib/SetupChecks/JavaScriptModules.php', |
|
| 110 | - 'OCA\\Settings\\SetupChecks\\JavaScriptSourceMaps' => $baseDir . '/../lib/SetupChecks/JavaScriptSourceMaps.php', |
|
| 111 | - 'OCA\\Settings\\SetupChecks\\LegacySSEKeyFormat' => $baseDir . '/../lib/SetupChecks/LegacySSEKeyFormat.php', |
|
| 112 | - 'OCA\\Settings\\SetupChecks\\LoggingLevel' => $baseDir . '/../lib/SetupChecks/LoggingLevel.php', |
|
| 113 | - 'OCA\\Settings\\SetupChecks\\MaintenanceWindowStart' => $baseDir . '/../lib/SetupChecks/MaintenanceWindowStart.php', |
|
| 114 | - 'OCA\\Settings\\SetupChecks\\MemcacheConfigured' => $baseDir . '/../lib/SetupChecks/MemcacheConfigured.php', |
|
| 115 | - 'OCA\\Settings\\SetupChecks\\MimeTypeMigrationAvailable' => $baseDir . '/../lib/SetupChecks/MimeTypeMigrationAvailable.php', |
|
| 116 | - 'OCA\\Settings\\SetupChecks\\MysqlRowFormat' => $baseDir . '/../lib/SetupChecks/MysqlRowFormat.php', |
|
| 117 | - 'OCA\\Settings\\SetupChecks\\MysqlUnicodeSupport' => $baseDir . '/../lib/SetupChecks/MysqlUnicodeSupport.php', |
|
| 118 | - 'OCA\\Settings\\SetupChecks\\OcxProviders' => $baseDir . '/../lib/SetupChecks/OcxProviders.php', |
|
| 119 | - 'OCA\\Settings\\SetupChecks\\OverwriteCliUrl' => $baseDir . '/../lib/SetupChecks/OverwriteCliUrl.php', |
|
| 120 | - 'OCA\\Settings\\SetupChecks\\PhpApcuConfig' => $baseDir . '/../lib/SetupChecks/PhpApcuConfig.php', |
|
| 121 | - 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset' => $baseDir . '/../lib/SetupChecks/PhpDefaultCharset.php', |
|
| 122 | - 'OCA\\Settings\\SetupChecks\\PhpDisabledFunctions' => $baseDir . '/../lib/SetupChecks/PhpDisabledFunctions.php', |
|
| 123 | - 'OCA\\Settings\\SetupChecks\\PhpFreetypeSupport' => $baseDir . '/../lib/SetupChecks/PhpFreetypeSupport.php', |
|
| 124 | - 'OCA\\Settings\\SetupChecks\\PhpGetEnv' => $baseDir . '/../lib/SetupChecks/PhpGetEnv.php', |
|
| 125 | - 'OCA\\Settings\\SetupChecks\\PhpMaxFileSize' => $baseDir . '/../lib/SetupChecks/PhpMaxFileSize.php', |
|
| 126 | - 'OCA\\Settings\\SetupChecks\\PhpMemoryLimit' => $baseDir . '/../lib/SetupChecks/PhpMemoryLimit.php', |
|
| 127 | - 'OCA\\Settings\\SetupChecks\\PhpModules' => $baseDir . '/../lib/SetupChecks/PhpModules.php', |
|
| 128 | - 'OCA\\Settings\\SetupChecks\\PhpOpcacheSetup' => $baseDir . '/../lib/SetupChecks/PhpOpcacheSetup.php', |
|
| 129 | - 'OCA\\Settings\\SetupChecks\\PhpOutdated' => $baseDir . '/../lib/SetupChecks/PhpOutdated.php', |
|
| 130 | - 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering' => $baseDir . '/../lib/SetupChecks/PhpOutputBuffering.php', |
|
| 131 | - 'OCA\\Settings\\SetupChecks\\PushService' => $baseDir . '/../lib/SetupChecks/PushService.php', |
|
| 132 | - 'OCA\\Settings\\SetupChecks\\RandomnessSecure' => $baseDir . '/../lib/SetupChecks/RandomnessSecure.php', |
|
| 133 | - 'OCA\\Settings\\SetupChecks\\ReadOnlyConfig' => $baseDir . '/../lib/SetupChecks/ReadOnlyConfig.php', |
|
| 134 | - 'OCA\\Settings\\SetupChecks\\SchedulingTableSize' => $baseDir . '/../lib/SetupChecks/SchedulingTableSize.php', |
|
| 135 | - 'OCA\\Settings\\SetupChecks\\SecurityHeaders' => $baseDir . '/../lib/SetupChecks/SecurityHeaders.php', |
|
| 136 | - 'OCA\\Settings\\SetupChecks\\ServerIdConfig' => $baseDir . '/../lib/SetupChecks/ServerIdConfig.php', |
|
| 137 | - 'OCA\\Settings\\SetupChecks\\SupportedDatabase' => $baseDir . '/../lib/SetupChecks/SupportedDatabase.php', |
|
| 138 | - 'OCA\\Settings\\SetupChecks\\SystemIs64bit' => $baseDir . '/../lib/SetupChecks/SystemIs64bit.php', |
|
| 139 | - 'OCA\\Settings\\SetupChecks\\TaskProcessingPickupSpeed' => $baseDir . '/../lib/SetupChecks/TaskProcessingPickupSpeed.php', |
|
| 140 | - 'OCA\\Settings\\SetupChecks\\TaskProcessingSuccessRate' => $baseDir . '/../lib/SetupChecks/TaskProcessingSuccessRate.php', |
|
| 141 | - 'OCA\\Settings\\SetupChecks\\TempSpaceAvailable' => $baseDir . '/../lib/SetupChecks/TempSpaceAvailable.php', |
|
| 142 | - 'OCA\\Settings\\SetupChecks\\TransactionIsolation' => $baseDir . '/../lib/SetupChecks/TransactionIsolation.php', |
|
| 143 | - 'OCA\\Settings\\SetupChecks\\WellKnownUrls' => $baseDir . '/../lib/SetupChecks/WellKnownUrls.php', |
|
| 144 | - 'OCA\\Settings\\SetupChecks\\Woff2Loading' => $baseDir . '/../lib/SetupChecks/Woff2Loading.php', |
|
| 145 | - 'OCA\\Settings\\UserMigration\\AccountMigrator' => $baseDir . '/../lib/UserMigration/AccountMigrator.php', |
|
| 146 | - 'OCA\\Settings\\UserMigration\\AccountMigratorException' => $baseDir . '/../lib/UserMigration/AccountMigratorException.php', |
|
| 147 | - 'OCA\\Settings\\WellKnown\\ChangePasswordHandler' => $baseDir . '/../lib/WellKnown/ChangePasswordHandler.php', |
|
| 148 | - 'OCA\\Settings\\WellKnown\\SecurityTxtHandler' => $baseDir . '/../lib/WellKnown/SecurityTxtHandler.php', |
|
| 9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
| 10 | + 'OCA\\Settings\\Activity\\GroupProvider' => $baseDir.'/../lib/Activity/GroupProvider.php', |
|
| 11 | + 'OCA\\Settings\\Activity\\GroupSetting' => $baseDir.'/../lib/Activity/GroupSetting.php', |
|
| 12 | + 'OCA\\Settings\\Activity\\Provider' => $baseDir.'/../lib/Activity/Provider.php', |
|
| 13 | + 'OCA\\Settings\\Activity\\SecurityFilter' => $baseDir.'/../lib/Activity/SecurityFilter.php', |
|
| 14 | + 'OCA\\Settings\\Activity\\SecurityProvider' => $baseDir.'/../lib/Activity/SecurityProvider.php', |
|
| 15 | + 'OCA\\Settings\\Activity\\SecuritySetting' => $baseDir.'/../lib/Activity/SecuritySetting.php', |
|
| 16 | + 'OCA\\Settings\\Activity\\Setting' => $baseDir.'/../lib/Activity/Setting.php', |
|
| 17 | + 'OCA\\Settings\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 18 | + 'OCA\\Settings\\BackgroundJobs\\VerifyUserData' => $baseDir.'/../lib/BackgroundJobs/VerifyUserData.php', |
|
| 19 | + 'OCA\\Settings\\Command\\AdminDelegation\\Add' => $baseDir.'/../lib/Command/AdminDelegation/Add.php', |
|
| 20 | + 'OCA\\Settings\\Command\\AdminDelegation\\Remove' => $baseDir.'/../lib/Command/AdminDelegation/Remove.php', |
|
| 21 | + 'OCA\\Settings\\Command\\AdminDelegation\\Show' => $baseDir.'/../lib/Command/AdminDelegation/Show.php', |
|
| 22 | + 'OCA\\Settings\\ConfigLexicon' => $baseDir.'/../lib/ConfigLexicon.php', |
|
| 23 | + 'OCA\\Settings\\Controller\\AISettingsController' => $baseDir.'/../lib/Controller/AISettingsController.php', |
|
| 24 | + 'OCA\\Settings\\Controller\\AdminSettingsController' => $baseDir.'/../lib/Controller/AdminSettingsController.php', |
|
| 25 | + 'OCA\\Settings\\Controller\\AppSettingsController' => $baseDir.'/../lib/Controller/AppSettingsController.php', |
|
| 26 | + 'OCA\\Settings\\Controller\\AuthSettingsController' => $baseDir.'/../lib/Controller/AuthSettingsController.php', |
|
| 27 | + 'OCA\\Settings\\Controller\\AuthorizedGroupController' => $baseDir.'/../lib/Controller/AuthorizedGroupController.php', |
|
| 28 | + 'OCA\\Settings\\Controller\\ChangePasswordController' => $baseDir.'/../lib/Controller/ChangePasswordController.php', |
|
| 29 | + 'OCA\\Settings\\Controller\\CheckSetupController' => $baseDir.'/../lib/Controller/CheckSetupController.php', |
|
| 30 | + 'OCA\\Settings\\Controller\\CommonSettingsTrait' => $baseDir.'/../lib/Controller/CommonSettingsTrait.php', |
|
| 31 | + 'OCA\\Settings\\Controller\\DeclarativeSettingsController' => $baseDir.'/../lib/Controller/DeclarativeSettingsController.php', |
|
| 32 | + 'OCA\\Settings\\Controller\\HelpController' => $baseDir.'/../lib/Controller/HelpController.php', |
|
| 33 | + 'OCA\\Settings\\Controller\\LogSettingsController' => $baseDir.'/../lib/Controller/LogSettingsController.php', |
|
| 34 | + 'OCA\\Settings\\Controller\\MailSettingsController' => $baseDir.'/../lib/Controller/MailSettingsController.php', |
|
| 35 | + 'OCA\\Settings\\Controller\\PersonalSettingsController' => $baseDir.'/../lib/Controller/PersonalSettingsController.php', |
|
| 36 | + 'OCA\\Settings\\Controller\\PresetController' => $baseDir.'/../lib/Controller/PresetController.php', |
|
| 37 | + 'OCA\\Settings\\Controller\\ReasonsController' => $baseDir.'/../lib/Controller/ReasonsController.php', |
|
| 38 | + 'OCA\\Settings\\Controller\\TwoFactorSettingsController' => $baseDir.'/../lib/Controller/TwoFactorSettingsController.php', |
|
| 39 | + 'OCA\\Settings\\Controller\\UsersController' => $baseDir.'/../lib/Controller/UsersController.php', |
|
| 40 | + 'OCA\\Settings\\Controller\\WebAuthnController' => $baseDir.'/../lib/Controller/WebAuthnController.php', |
|
| 41 | + 'OCA\\Settings\\Events\\BeforeTemplateRenderedEvent' => $baseDir.'/../lib/Events/BeforeTemplateRenderedEvent.php', |
|
| 42 | + 'OCA\\Settings\\Hooks' => $baseDir.'/../lib/Hooks.php', |
|
| 43 | + 'OCA\\Settings\\Listener\\AppPasswordCreatedActivityListener' => $baseDir.'/../lib/Listener/AppPasswordCreatedActivityListener.php', |
|
| 44 | + 'OCA\\Settings\\Listener\\GroupRemovedListener' => $baseDir.'/../lib/Listener/GroupRemovedListener.php', |
|
| 45 | + 'OCA\\Settings\\Listener\\MailProviderListener' => $baseDir.'/../lib/Listener/MailProviderListener.php', |
|
| 46 | + 'OCA\\Settings\\Listener\\UserAddedToGroupActivityListener' => $baseDir.'/../lib/Listener/UserAddedToGroupActivityListener.php', |
|
| 47 | + 'OCA\\Settings\\Listener\\UserRemovedFromGroupActivityListener' => $baseDir.'/../lib/Listener/UserRemovedFromGroupActivityListener.php', |
|
| 48 | + 'OCA\\Settings\\Mailer\\NewUserMailHelper' => $baseDir.'/../lib/Mailer/NewUserMailHelper.php', |
|
| 49 | + 'OCA\\Settings\\Middleware\\SubadminMiddleware' => $baseDir.'/../lib/Middleware/SubadminMiddleware.php', |
|
| 50 | + 'OCA\\Settings\\ResponseDefinitions' => $baseDir.'/../lib/ResponseDefinitions.php', |
|
| 51 | + 'OCA\\Settings\\Search\\AppSearch' => $baseDir.'/../lib/Search/AppSearch.php', |
|
| 52 | + 'OCA\\Settings\\Search\\SectionSearch' => $baseDir.'/../lib/Search/SectionSearch.php', |
|
| 53 | + 'OCA\\Settings\\Search\\UserSearch' => $baseDir.'/../lib/Search/UserSearch.php', |
|
| 54 | + 'OCA\\Settings\\Sections\\Admin\\Additional' => $baseDir.'/../lib/Sections/Admin/Additional.php', |
|
| 55 | + 'OCA\\Settings\\Sections\\Admin\\ArtificialIntelligence' => $baseDir.'/../lib/Sections/Admin/ArtificialIntelligence.php', |
|
| 56 | + 'OCA\\Settings\\Sections\\Admin\\Delegation' => $baseDir.'/../lib/Sections/Admin/Delegation.php', |
|
| 57 | + 'OCA\\Settings\\Sections\\Admin\\Groupware' => $baseDir.'/../lib/Sections/Admin/Groupware.php', |
|
| 58 | + 'OCA\\Settings\\Sections\\Admin\\Overview' => $baseDir.'/../lib/Sections/Admin/Overview.php', |
|
| 59 | + 'OCA\\Settings\\Sections\\Admin\\Presets' => $baseDir.'/../lib/Sections/Admin/Presets.php', |
|
| 60 | + 'OCA\\Settings\\Sections\\Admin\\Security' => $baseDir.'/../lib/Sections/Admin/Security.php', |
|
| 61 | + 'OCA\\Settings\\Sections\\Admin\\Server' => $baseDir.'/../lib/Sections/Admin/Server.php', |
|
| 62 | + 'OCA\\Settings\\Sections\\Admin\\Sharing' => $baseDir.'/../lib/Sections/Admin/Sharing.php', |
|
| 63 | + 'OCA\\Settings\\Sections\\Admin\\Users' => $baseDir.'/../lib/Sections/Admin/Users.php', |
|
| 64 | + 'OCA\\Settings\\Sections\\Personal\\Availability' => $baseDir.'/../lib/Sections/Personal/Availability.php', |
|
| 65 | + 'OCA\\Settings\\Sections\\Personal\\Calendar' => $baseDir.'/../lib/Sections/Personal/Calendar.php', |
|
| 66 | + 'OCA\\Settings\\Sections\\Personal\\PersonalInfo' => $baseDir.'/../lib/Sections/Personal/PersonalInfo.php', |
|
| 67 | + 'OCA\\Settings\\Sections\\Personal\\Security' => $baseDir.'/../lib/Sections/Personal/Security.php', |
|
| 68 | + 'OCA\\Settings\\Sections\\Personal\\SyncClients' => $baseDir.'/../lib/Sections/Personal/SyncClients.php', |
|
| 69 | + 'OCA\\Settings\\Service\\AuthorizedGroupService' => $baseDir.'/../lib/Service/AuthorizedGroupService.php', |
|
| 70 | + 'OCA\\Settings\\Service\\ConflictException' => $baseDir.'/../lib/Service/ConflictException.php', |
|
| 71 | + 'OCA\\Settings\\Service\\NotFoundException' => $baseDir.'/../lib/Service/NotFoundException.php', |
|
| 72 | + 'OCA\\Settings\\Service\\ServiceException' => $baseDir.'/../lib/Service/ServiceException.php', |
|
| 73 | + 'OCA\\Settings\\Settings\\Admin\\ArtificialIntelligence' => $baseDir.'/../lib/Settings/Admin/ArtificialIntelligence.php', |
|
| 74 | + 'OCA\\Settings\\Settings\\Admin\\Delegation' => $baseDir.'/../lib/Settings/Admin/Delegation.php', |
|
| 75 | + 'OCA\\Settings\\Settings\\Admin\\Mail' => $baseDir.'/../lib/Settings/Admin/Mail.php', |
|
| 76 | + 'OCA\\Settings\\Settings\\Admin\\MailProvider' => $baseDir.'/../lib/Settings/Admin/MailProvider.php', |
|
| 77 | + 'OCA\\Settings\\Settings\\Admin\\Overview' => $baseDir.'/../lib/Settings/Admin/Overview.php', |
|
| 78 | + 'OCA\\Settings\\Settings\\Admin\\Presets' => $baseDir.'/../lib/Settings/Admin/Presets.php', |
|
| 79 | + 'OCA\\Settings\\Settings\\Admin\\Security' => $baseDir.'/../lib/Settings/Admin/Security.php', |
|
| 80 | + 'OCA\\Settings\\Settings\\Admin\\Server' => $baseDir.'/../lib/Settings/Admin/Server.php', |
|
| 81 | + 'OCA\\Settings\\Settings\\Admin\\Sharing' => $baseDir.'/../lib/Settings/Admin/Sharing.php', |
|
| 82 | + 'OCA\\Settings\\Settings\\Admin\\Users' => $baseDir.'/../lib/Settings/Admin/Users.php', |
|
| 83 | + 'OCA\\Settings\\Settings\\Personal\\Additional' => $baseDir.'/../lib/Settings/Personal/Additional.php', |
|
| 84 | + 'OCA\\Settings\\Settings\\Personal\\PersonalInfo' => $baseDir.'/../lib/Settings/Personal/PersonalInfo.php', |
|
| 85 | + 'OCA\\Settings\\Settings\\Personal\\Security\\Authtokens' => $baseDir.'/../lib/Settings/Personal/Security/Authtokens.php', |
|
| 86 | + 'OCA\\Settings\\Settings\\Personal\\Security\\Password' => $baseDir.'/../lib/Settings/Personal/Security/Password.php', |
|
| 87 | + 'OCA\\Settings\\Settings\\Personal\\Security\\TwoFactor' => $baseDir.'/../lib/Settings/Personal/Security/TwoFactor.php', |
|
| 88 | + 'OCA\\Settings\\Settings\\Personal\\Security\\WebAuthn' => $baseDir.'/../lib/Settings/Personal/Security/WebAuthn.php', |
|
| 89 | + 'OCA\\Settings\\Settings\\Personal\\ServerDevNotice' => $baseDir.'/../lib/Settings/Personal/ServerDevNotice.php', |
|
| 90 | + 'OCA\\Settings\\SetupChecks\\AllowedAdminRanges' => $baseDir.'/../lib/SetupChecks/AllowedAdminRanges.php', |
|
| 91 | + 'OCA\\Settings\\SetupChecks\\AppDirsWithDifferentOwner' => $baseDir.'/../lib/SetupChecks/AppDirsWithDifferentOwner.php', |
|
| 92 | + 'OCA\\Settings\\SetupChecks\\BruteForceThrottler' => $baseDir.'/../lib/SetupChecks/BruteForceThrottler.php', |
|
| 93 | + 'OCA\\Settings\\SetupChecks\\CheckUserCertificates' => $baseDir.'/../lib/SetupChecks/CheckUserCertificates.php', |
|
| 94 | + 'OCA\\Settings\\SetupChecks\\CodeIntegrity' => $baseDir.'/../lib/SetupChecks/CodeIntegrity.php', |
|
| 95 | + 'OCA\\Settings\\SetupChecks\\CronErrors' => $baseDir.'/../lib/SetupChecks/CronErrors.php', |
|
| 96 | + 'OCA\\Settings\\SetupChecks\\CronInfo' => $baseDir.'/../lib/SetupChecks/CronInfo.php', |
|
| 97 | + 'OCA\\Settings\\SetupChecks\\DataDirectoryProtected' => $baseDir.'/../lib/SetupChecks/DataDirectoryProtected.php', |
|
| 98 | + 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingColumns' => $baseDir.'/../lib/SetupChecks/DatabaseHasMissingColumns.php', |
|
| 99 | + 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingIndices' => $baseDir.'/../lib/SetupChecks/DatabaseHasMissingIndices.php', |
|
| 100 | + 'OCA\\Settings\\SetupChecks\\DatabaseHasMissingPrimaryKeys' => $baseDir.'/../lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php', |
|
| 101 | + 'OCA\\Settings\\SetupChecks\\DatabasePendingBigIntConversions' => $baseDir.'/../lib/SetupChecks/DatabasePendingBigIntConversions.php', |
|
| 102 | + 'OCA\\Settings\\SetupChecks\\DebugMode' => $baseDir.'/../lib/SetupChecks/DebugMode.php', |
|
| 103 | + 'OCA\\Settings\\SetupChecks\\DefaultPhoneRegionSet' => $baseDir.'/../lib/SetupChecks/DefaultPhoneRegionSet.php', |
|
| 104 | + 'OCA\\Settings\\SetupChecks\\EmailTestSuccessful' => $baseDir.'/../lib/SetupChecks/EmailTestSuccessful.php', |
|
| 105 | + 'OCA\\Settings\\SetupChecks\\FileLocking' => $baseDir.'/../lib/SetupChecks/FileLocking.php', |
|
| 106 | + 'OCA\\Settings\\SetupChecks\\ForwardedForHeaders' => $baseDir.'/../lib/SetupChecks/ForwardedForHeaders.php', |
|
| 107 | + 'OCA\\Settings\\SetupChecks\\HttpsUrlGeneration' => $baseDir.'/../lib/SetupChecks/HttpsUrlGeneration.php', |
|
| 108 | + 'OCA\\Settings\\SetupChecks\\InternetConnectivity' => $baseDir.'/../lib/SetupChecks/InternetConnectivity.php', |
|
| 109 | + 'OCA\\Settings\\SetupChecks\\JavaScriptModules' => $baseDir.'/../lib/SetupChecks/JavaScriptModules.php', |
|
| 110 | + 'OCA\\Settings\\SetupChecks\\JavaScriptSourceMaps' => $baseDir.'/../lib/SetupChecks/JavaScriptSourceMaps.php', |
|
| 111 | + 'OCA\\Settings\\SetupChecks\\LegacySSEKeyFormat' => $baseDir.'/../lib/SetupChecks/LegacySSEKeyFormat.php', |
|
| 112 | + 'OCA\\Settings\\SetupChecks\\LoggingLevel' => $baseDir.'/../lib/SetupChecks/LoggingLevel.php', |
|
| 113 | + 'OCA\\Settings\\SetupChecks\\MaintenanceWindowStart' => $baseDir.'/../lib/SetupChecks/MaintenanceWindowStart.php', |
|
| 114 | + 'OCA\\Settings\\SetupChecks\\MemcacheConfigured' => $baseDir.'/../lib/SetupChecks/MemcacheConfigured.php', |
|
| 115 | + 'OCA\\Settings\\SetupChecks\\MimeTypeMigrationAvailable' => $baseDir.'/../lib/SetupChecks/MimeTypeMigrationAvailable.php', |
|
| 116 | + 'OCA\\Settings\\SetupChecks\\MysqlRowFormat' => $baseDir.'/../lib/SetupChecks/MysqlRowFormat.php', |
|
| 117 | + 'OCA\\Settings\\SetupChecks\\MysqlUnicodeSupport' => $baseDir.'/../lib/SetupChecks/MysqlUnicodeSupport.php', |
|
| 118 | + 'OCA\\Settings\\SetupChecks\\OcxProviders' => $baseDir.'/../lib/SetupChecks/OcxProviders.php', |
|
| 119 | + 'OCA\\Settings\\SetupChecks\\OverwriteCliUrl' => $baseDir.'/../lib/SetupChecks/OverwriteCliUrl.php', |
|
| 120 | + 'OCA\\Settings\\SetupChecks\\PhpApcuConfig' => $baseDir.'/../lib/SetupChecks/PhpApcuConfig.php', |
|
| 121 | + 'OCA\\Settings\\SetupChecks\\PhpDefaultCharset' => $baseDir.'/../lib/SetupChecks/PhpDefaultCharset.php', |
|
| 122 | + 'OCA\\Settings\\SetupChecks\\PhpDisabledFunctions' => $baseDir.'/../lib/SetupChecks/PhpDisabledFunctions.php', |
|
| 123 | + 'OCA\\Settings\\SetupChecks\\PhpFreetypeSupport' => $baseDir.'/../lib/SetupChecks/PhpFreetypeSupport.php', |
|
| 124 | + 'OCA\\Settings\\SetupChecks\\PhpGetEnv' => $baseDir.'/../lib/SetupChecks/PhpGetEnv.php', |
|
| 125 | + 'OCA\\Settings\\SetupChecks\\PhpMaxFileSize' => $baseDir.'/../lib/SetupChecks/PhpMaxFileSize.php', |
|
| 126 | + 'OCA\\Settings\\SetupChecks\\PhpMemoryLimit' => $baseDir.'/../lib/SetupChecks/PhpMemoryLimit.php', |
|
| 127 | + 'OCA\\Settings\\SetupChecks\\PhpModules' => $baseDir.'/../lib/SetupChecks/PhpModules.php', |
|
| 128 | + 'OCA\\Settings\\SetupChecks\\PhpOpcacheSetup' => $baseDir.'/../lib/SetupChecks/PhpOpcacheSetup.php', |
|
| 129 | + 'OCA\\Settings\\SetupChecks\\PhpOutdated' => $baseDir.'/../lib/SetupChecks/PhpOutdated.php', |
|
| 130 | + 'OCA\\Settings\\SetupChecks\\PhpOutputBuffering' => $baseDir.'/../lib/SetupChecks/PhpOutputBuffering.php', |
|
| 131 | + 'OCA\\Settings\\SetupChecks\\PushService' => $baseDir.'/../lib/SetupChecks/PushService.php', |
|
| 132 | + 'OCA\\Settings\\SetupChecks\\RandomnessSecure' => $baseDir.'/../lib/SetupChecks/RandomnessSecure.php', |
|
| 133 | + 'OCA\\Settings\\SetupChecks\\ReadOnlyConfig' => $baseDir.'/../lib/SetupChecks/ReadOnlyConfig.php', |
|
| 134 | + 'OCA\\Settings\\SetupChecks\\SchedulingTableSize' => $baseDir.'/../lib/SetupChecks/SchedulingTableSize.php', |
|
| 135 | + 'OCA\\Settings\\SetupChecks\\SecurityHeaders' => $baseDir.'/../lib/SetupChecks/SecurityHeaders.php', |
|
| 136 | + 'OCA\\Settings\\SetupChecks\\ServerIdConfig' => $baseDir.'/../lib/SetupChecks/ServerIdConfig.php', |
|
| 137 | + 'OCA\\Settings\\SetupChecks\\SupportedDatabase' => $baseDir.'/../lib/SetupChecks/SupportedDatabase.php', |
|
| 138 | + 'OCA\\Settings\\SetupChecks\\SystemIs64bit' => $baseDir.'/../lib/SetupChecks/SystemIs64bit.php', |
|
| 139 | + 'OCA\\Settings\\SetupChecks\\TaskProcessingPickupSpeed' => $baseDir.'/../lib/SetupChecks/TaskProcessingPickupSpeed.php', |
|
| 140 | + 'OCA\\Settings\\SetupChecks\\TaskProcessingSuccessRate' => $baseDir.'/../lib/SetupChecks/TaskProcessingSuccessRate.php', |
|
| 141 | + 'OCA\\Settings\\SetupChecks\\TempSpaceAvailable' => $baseDir.'/../lib/SetupChecks/TempSpaceAvailable.php', |
|
| 142 | + 'OCA\\Settings\\SetupChecks\\TransactionIsolation' => $baseDir.'/../lib/SetupChecks/TransactionIsolation.php', |
|
| 143 | + 'OCA\\Settings\\SetupChecks\\WellKnownUrls' => $baseDir.'/../lib/SetupChecks/WellKnownUrls.php', |
|
| 144 | + 'OCA\\Settings\\SetupChecks\\Woff2Loading' => $baseDir.'/../lib/SetupChecks/Woff2Loading.php', |
|
| 145 | + 'OCA\\Settings\\UserMigration\\AccountMigrator' => $baseDir.'/../lib/UserMigration/AccountMigrator.php', |
|
| 146 | + 'OCA\\Settings\\UserMigration\\AccountMigratorException' => $baseDir.'/../lib/UserMigration/AccountMigratorException.php', |
|
| 147 | + 'OCA\\Settings\\WellKnown\\ChangePasswordHandler' => $baseDir.'/../lib/WellKnown/ChangePasswordHandler.php', |
|
| 148 | + 'OCA\\Settings\\WellKnown\\SecurityTxtHandler' => $baseDir.'/../lib/WellKnown/SecurityTxtHandler.php', |
|
| 149 | 149 | ); |
@@ -16,92 +16,92 @@ |
||
| 16 | 16 | |
| 17 | 17 | class AuthorizedGroupService { |
| 18 | 18 | |
| 19 | - public function __construct( |
|
| 20 | - private AuthorizedGroupMapper $mapper, |
|
| 21 | - ) { |
|
| 22 | - } |
|
| 19 | + public function __construct( |
|
| 20 | + private AuthorizedGroupMapper $mapper, |
|
| 21 | + ) { |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | - /** |
|
| 25 | - * @return AuthorizedGroup[] |
|
| 26 | - */ |
|
| 27 | - public function findAll(): array { |
|
| 28 | - return $this->mapper->findAll(); |
|
| 29 | - } |
|
| 24 | + /** |
|
| 25 | + * @return AuthorizedGroup[] |
|
| 26 | + */ |
|
| 27 | + public function findAll(): array { |
|
| 28 | + return $this->mapper->findAll(); |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | - /** |
|
| 32 | - * Find AuthorizedGroup by id. |
|
| 33 | - * |
|
| 34 | - * @param int $id |
|
| 35 | - */ |
|
| 36 | - public function find(int $id): ?AuthorizedGroup { |
|
| 37 | - return $this->mapper->find($id); |
|
| 38 | - } |
|
| 31 | + /** |
|
| 32 | + * Find AuthorizedGroup by id. |
|
| 33 | + * |
|
| 34 | + * @param int $id |
|
| 35 | + */ |
|
| 36 | + public function find(int $id): ?AuthorizedGroup { |
|
| 37 | + return $this->mapper->find($id); |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * @param $e |
|
| 42 | - * @throws NotFoundException |
|
| 43 | - */ |
|
| 44 | - private function handleException(\Exception $e): void { |
|
| 45 | - if ($e instanceof DoesNotExistException |
|
| 46 | - || $e instanceof MultipleObjectsReturnedException) { |
|
| 47 | - throw new NotFoundException('AuthorizedGroup not found'); |
|
| 48 | - } else { |
|
| 49 | - throw $e; |
|
| 50 | - } |
|
| 51 | - } |
|
| 40 | + /** |
|
| 41 | + * @param $e |
|
| 42 | + * @throws NotFoundException |
|
| 43 | + */ |
|
| 44 | + private function handleException(\Exception $e): void { |
|
| 45 | + if ($e instanceof DoesNotExistException |
|
| 46 | + || $e instanceof MultipleObjectsReturnedException) { |
|
| 47 | + throw new NotFoundException('AuthorizedGroup not found'); |
|
| 48 | + } else { |
|
| 49 | + throw $e; |
|
| 50 | + } |
|
| 51 | + } |
|
| 52 | 52 | |
| 53 | - /** |
|
| 54 | - * Create a new AuthorizedGroup |
|
| 55 | - * |
|
| 56 | - * @param string $groupId |
|
| 57 | - * @param string $class |
|
| 58 | - * @return AuthorizedGroup |
|
| 59 | - * @throws Exception |
|
| 60 | - * @throws ConflictException |
|
| 61 | - */ |
|
| 62 | - public function create(string $groupId, string $class): AuthorizedGroup { |
|
| 63 | - // Check if the group is already assigned to this class |
|
| 64 | - try { |
|
| 65 | - $existing = $this->mapper->findByGroupIdAndClass($groupId, $class); |
|
| 66 | - if ($existing) { |
|
| 67 | - throw new ConflictException('Group is already assigned to this class'); |
|
| 68 | - } |
|
| 69 | - } catch (DoesNotExistException $e) { |
|
| 70 | - // This is expected when no duplicate exists, continue with creation |
|
| 71 | - } |
|
| 53 | + /** |
|
| 54 | + * Create a new AuthorizedGroup |
|
| 55 | + * |
|
| 56 | + * @param string $groupId |
|
| 57 | + * @param string $class |
|
| 58 | + * @return AuthorizedGroup |
|
| 59 | + * @throws Exception |
|
| 60 | + * @throws ConflictException |
|
| 61 | + */ |
|
| 62 | + public function create(string $groupId, string $class): AuthorizedGroup { |
|
| 63 | + // Check if the group is already assigned to this class |
|
| 64 | + try { |
|
| 65 | + $existing = $this->mapper->findByGroupIdAndClass($groupId, $class); |
|
| 66 | + if ($existing) { |
|
| 67 | + throw new ConflictException('Group is already assigned to this class'); |
|
| 68 | + } |
|
| 69 | + } catch (DoesNotExistException $e) { |
|
| 70 | + // This is expected when no duplicate exists, continue with creation |
|
| 71 | + } |
|
| 72 | 72 | |
| 73 | - $authorizedGroup = new AuthorizedGroup(); |
|
| 74 | - $authorizedGroup->setGroupId($groupId); |
|
| 75 | - $authorizedGroup->setClass($class); |
|
| 76 | - return $this->mapper->insert($authorizedGroup); |
|
| 77 | - } |
|
| 73 | + $authorizedGroup = new AuthorizedGroup(); |
|
| 74 | + $authorizedGroup->setGroupId($groupId); |
|
| 75 | + $authorizedGroup->setClass($class); |
|
| 76 | + return $this->mapper->insert($authorizedGroup); |
|
| 77 | + } |
|
| 78 | 78 | |
| 79 | - /** |
|
| 80 | - * @throws NotFoundException |
|
| 81 | - */ |
|
| 82 | - public function delete(int $id): void { |
|
| 83 | - try { |
|
| 84 | - $authorizedGroup = $this->mapper->find($id); |
|
| 85 | - $this->mapper->delete($authorizedGroup); |
|
| 86 | - } catch (\Exception $e) { |
|
| 87 | - $this->handleException($e); |
|
| 88 | - } |
|
| 89 | - } |
|
| 79 | + /** |
|
| 80 | + * @throws NotFoundException |
|
| 81 | + */ |
|
| 82 | + public function delete(int $id): void { |
|
| 83 | + try { |
|
| 84 | + $authorizedGroup = $this->mapper->find($id); |
|
| 85 | + $this->mapper->delete($authorizedGroup); |
|
| 86 | + } catch (\Exception $e) { |
|
| 87 | + $this->handleException($e); |
|
| 88 | + } |
|
| 89 | + } |
|
| 90 | 90 | |
| 91 | - public function findExistingGroupsForClass(string $class): array { |
|
| 92 | - try { |
|
| 93 | - $authorizedGroup = $this->mapper->findExistingGroupsForClass($class); |
|
| 94 | - return $authorizedGroup; |
|
| 95 | - } catch (\Exception $e) { |
|
| 96 | - return []; |
|
| 97 | - } |
|
| 98 | - } |
|
| 91 | + public function findExistingGroupsForClass(string $class): array { |
|
| 92 | + try { |
|
| 93 | + $authorizedGroup = $this->mapper->findExistingGroupsForClass($class); |
|
| 94 | + return $authorizedGroup; |
|
| 95 | + } catch (\Exception $e) { |
|
| 96 | + return []; |
|
| 97 | + } |
|
| 98 | + } |
|
| 99 | 99 | |
| 100 | - public function removeAuthorizationAssociatedTo(IGroup $group): void { |
|
| 101 | - try { |
|
| 102 | - $this->mapper->removeGroup($group->getGID()); |
|
| 103 | - } catch (\Exception $e) { |
|
| 104 | - $this->handleException($e); |
|
| 105 | - } |
|
| 106 | - } |
|
| 100 | + public function removeAuthorizationAssociatedTo(IGroup $group): void { |
|
| 101 | + try { |
|
| 102 | + $this->mapper->removeGroup($group->getGID()); |
|
| 103 | + } catch (\Exception $e) { |
|
| 104 | + $this->handleException($e); |
|
| 105 | + } |
|
| 106 | + } |
|
| 107 | 107 | } |
@@ -19,47 +19,47 @@ |
||
| 19 | 19 | use Symfony\Component\Console\Style\SymfonyStyle; |
| 20 | 20 | |
| 21 | 21 | class Add extends Base { |
| 22 | - public function __construct( |
|
| 23 | - private IManager $settingManager, |
|
| 24 | - private AuthorizedGroupService $authorizedGroupService, |
|
| 25 | - private IGroupManager $groupManager, |
|
| 26 | - ) { |
|
| 27 | - parent::__construct(); |
|
| 28 | - } |
|
| 22 | + public function __construct( |
|
| 23 | + private IManager $settingManager, |
|
| 24 | + private AuthorizedGroupService $authorizedGroupService, |
|
| 25 | + private IGroupManager $groupManager, |
|
| 26 | + ) { |
|
| 27 | + parent::__construct(); |
|
| 28 | + } |
|
| 29 | 29 | |
| 30 | - protected function configure(): void { |
|
| 31 | - $this |
|
| 32 | - ->setName('admin-delegation:add') |
|
| 33 | - ->setDescription('add setting delegation to a group') |
|
| 34 | - ->addArgument('settingClass', InputArgument::REQUIRED, 'Admin setting class') |
|
| 35 | - ->addArgument('groupId', InputArgument::REQUIRED, 'Delegate to group ID') |
|
| 36 | - ->addUsage('\'OCA\Settings\Settings\Admin\Server\' mygroup') |
|
| 37 | - ; |
|
| 38 | - } |
|
| 30 | + protected function configure(): void { |
|
| 31 | + $this |
|
| 32 | + ->setName('admin-delegation:add') |
|
| 33 | + ->setDescription('add setting delegation to a group') |
|
| 34 | + ->addArgument('settingClass', InputArgument::REQUIRED, 'Admin setting class') |
|
| 35 | + ->addArgument('groupId', InputArgument::REQUIRED, 'Delegate to group ID') |
|
| 36 | + ->addUsage('\'OCA\Settings\Settings\Admin\Server\' mygroup') |
|
| 37 | + ; |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - public function execute(InputInterface $input, OutputInterface $output): int { |
|
| 41 | - $io = new SymfonyStyle($input, $output); |
|
| 42 | - $settingClass = $input->getArgument('settingClass'); |
|
| 43 | - if (!in_array(IDelegatedSettings::class, (array)class_implements($settingClass), true)) { |
|
| 44 | - $io->error('The specified class isn’t a valid delegated setting.'); |
|
| 45 | - return 2; |
|
| 46 | - } |
|
| 40 | + public function execute(InputInterface $input, OutputInterface $output): int { |
|
| 41 | + $io = new SymfonyStyle($input, $output); |
|
| 42 | + $settingClass = $input->getArgument('settingClass'); |
|
| 43 | + if (!in_array(IDelegatedSettings::class, (array)class_implements($settingClass), true)) { |
|
| 44 | + $io->error('The specified class isn’t a valid delegated setting.'); |
|
| 45 | + return 2; |
|
| 46 | + } |
|
| 47 | 47 | |
| 48 | - $groupId = $input->getArgument('groupId'); |
|
| 49 | - if (!$this->groupManager->groupExists($groupId)) { |
|
| 50 | - $io->error('The specified group didn’t exist.'); |
|
| 51 | - return 3; |
|
| 52 | - } |
|
| 48 | + $groupId = $input->getArgument('groupId'); |
|
| 49 | + if (!$this->groupManager->groupExists($groupId)) { |
|
| 50 | + $io->error('The specified group didn’t exist.'); |
|
| 51 | + return 3; |
|
| 52 | + } |
|
| 53 | 53 | |
| 54 | - try { |
|
| 55 | - $this->authorizedGroupService->create($groupId, $settingClass); |
|
| 56 | - } catch (ConflictException) { |
|
| 57 | - $io->warning('Administration of ' . $settingClass . ' is already delegated to ' . $groupId . '.'); |
|
| 58 | - return 4; |
|
| 59 | - } |
|
| 54 | + try { |
|
| 55 | + $this->authorizedGroupService->create($groupId, $settingClass); |
|
| 56 | + } catch (ConflictException) { |
|
| 57 | + $io->warning('Administration of ' . $settingClass . ' is already delegated to ' . $groupId . '.'); |
|
| 58 | + return 4; |
|
| 59 | + } |
|
| 60 | 60 | |
| 61 | - $io->success('Administration of ' . $settingClass . ' delegated to ' . $groupId . '.'); |
|
| 61 | + $io->success('Administration of ' . $settingClass . ' delegated to ' . $groupId . '.'); |
|
| 62 | 62 | |
| 63 | - return 0; |
|
| 64 | - } |
|
| 63 | + return 0; |
|
| 64 | + } |
|
| 65 | 65 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | /** |
| 5 | 5 | * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors |
| 6 | 6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | public function execute(InputInterface $input, OutputInterface $output): int { |
| 41 | 41 | $io = new SymfonyStyle($input, $output); |
| 42 | 42 | $settingClass = $input->getArgument('settingClass'); |
| 43 | - if (!in_array(IDelegatedSettings::class, (array)class_implements($settingClass), true)) { |
|
| 43 | + if (!in_array(IDelegatedSettings::class, (array) class_implements($settingClass), true)) { |
|
| 44 | 44 | $io->error('The specified class isn’t a valid delegated setting.'); |
| 45 | 45 | return 2; |
| 46 | 46 | } |
@@ -54,11 +54,11 @@ discard block |
||
| 54 | 54 | try { |
| 55 | 55 | $this->authorizedGroupService->create($groupId, $settingClass); |
| 56 | 56 | } catch (ConflictException) { |
| 57 | - $io->warning('Administration of ' . $settingClass . ' is already delegated to ' . $groupId . '.'); |
|
| 57 | + $io->warning('Administration of '.$settingClass.' is already delegated to '.$groupId.'.'); |
|
| 58 | 58 | return 4; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - $io->success('Administration of ' . $settingClass . ' delegated to ' . $groupId . '.'); |
|
| 61 | + $io->success('Administration of '.$settingClass.' delegated to '.$groupId.'.'); |
|
| 62 | 62 | |
| 63 | 63 | return 0; |
| 64 | 64 | } |