| @@ -19,9 +19,9 @@ | ||
| 19 | 19 | private Database $database, |
| 20 | 20 | private MainConfig $config, |
| 21 | 21 | private Util $util, |
| 22 | 22 | private ObjectHandler $objectHandler, |
| 23 | - private AssignedObjectsLoader $assignedObjectsLoader | |
| 23 | + private AssignmentInformationFactory $assignmentInformationFactory | |
| 24 | 24 | ) { |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |
| @@ -35,9 +35,9 @@ | ||
| 35 | 35 | $this->database, |
| 36 | 36 | $this->config, |
| 37 | 37 | $this->util, |
| 38 | 38 | $this->objectHandler, |
| 39 | - $this->assignedObjectsLoader, | |
| 39 | + $this->assignmentInformationFactory, | |
| 40 | 40 | $id |
| 41 | 41 | ); |
| 42 | 42 | } |
| 43 | 43 | |
| @@ -43,19 +43,8 @@ | ||
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * @throws UserGroupTypeException |
| 46 | 46 | */ |
| 47 | - public function createUserGroupFromDatabaseRow(object $databaseUserGroup): UserGroup | |
| 48 | - { | |
| 49 | - $userGroup = $this->createUserGroup(); | |
| 50 | - $userGroup->assignDatabaseValues($databaseUserGroup); | |
| 51 | - | |
| 52 | - return $userGroup; | |
| 53 | - } | |
| 54 | - | |
| 55 | - /** | |
| 56 | - * @throws UserGroupTypeException | |
| 57 | - */ | |
| 58 | 47 | public function createDynamicUserGroup(string $type, int|string $id): DynamicUserGroup |
| 59 | 48 | { |
| 60 | 49 | return new DynamicUserGroup( |
| 61 | 50 | $this->php, |
| @@ -63,9 +52,9 @@ | ||
| 63 | 52 | $this->database, |
| 64 | 53 | $this->config, |
| 65 | 54 | $this->util, |
| 66 | 55 | $this->objectHandler, |
| 67 | - $this->assignedObjectsLoader, | |
| 56 | + $this->assignmentInformationFactory, | |
| 68 | 57 | $type, |
| 69 | 58 | $id |
| 70 | 59 | ); |
| 71 | 60 | } |