`AbstractCommentManager` no longer inherits from `SingletonFactory`
authorMarcel Werk <burntime@woltlab.com>
Mon, 14 Oct 2024 13:55:07 +0000 (15:55 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 14 Oct 2024 13:55:07 +0000 (15:55 +0200)
commita568977595148748a6adaa9d9da057b2b3a478bd
treeeca3b3c1fb3e2c614737cacccb41beeb642bb287
parent0846fca5ee0467a3b015087ccb3339233329032b
`AbstractCommentManager` no longer inherits from `SingletonFactory`

The dependency on `SingletonFactory` offers no added value, as the comment manager is not accessed directly and it is only instantiated once per object type in `ObjectType::getProcessor()`. At the same time, however, the dependency on `SingleFactory` prevents a `CommentManager` implementation from being used in different/multiple object types.

ref https://github.com/WoltLab/WCF/blob/master/wcfsetup/install/files/lib/data/object/type/ObjectType.class.php#L109
wcfsetup/install/files/lib/system/comment/manager/AbstractCommentManager.class.php