PluginProbe
User Access Manager / 2.3.2
User Access Manager v2.3.2
2.3.20 2.3.19 2.3.18 2.3.17 2.3.16 2.3.15 2.3.14 2.3.13 trunk 0.6 0.6.1 0.6.2 0.7 0.7 Beta 0.7.0.1 0.8 0.8.0.1 0.8.0.2 0.9 0.9.1 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 1.0 All 136 releases
← All changes | src/UserGroup/DynamicUserGroup.php +3 -3 2.3.162.3.2 View file →
@@ -27,9 +27,9 @@
27 27 Database $database,
28 28 MainConfig $config,
29 29 Util $util,
30 30 ObjectHandler $objectHandler,
31 - AssignedObjectsLoader $assignedObjectsLoader,
31 + AssignmentInformationFactory $assignmentInformationFactory,
32 32 protected ?string $type,
33 33 int|string $id
34 34 ) {
35 35 parent::__construct(
@@ -38,9 +38,9 @@
38 38 $database,
39 39 $config,
40 40 $util,
41 41 $objectHandler,
42 - $assignedObjectsLoader,
42 + $assignmentInformationFactory,
43 43 $id
44 44 );
45 45
46 46 if ($this->type !== self::USER_TYPE && $this->type !== self::ROLE_TYPE) {
@@ -77,9 +77,9 @@
77 77 /**
78 78 * @throws UserGroupAssignmentException
79 79 * @throws Exception
80 80 */
81 - public function addObject(string $objectType, int|string|null $objectId, $fromDate = null, $toDate = null): bool
81 + public function addObject(string $objectType, int|string $objectId, $fromDate = null, $toDate = null): bool
82 82 {
83 83 if ($this->objectHandler->getGeneralObjectType($objectType) === ObjectHandler::GENERAL_USER_OBJECT_TYPE) {
84 84 throw new UserGroupAssignmentException('Dynamic user groups can\'t be assigned to user.');
85 85 }