logging: Start using LinkTarget & UserIdentity in ManualLogEntry
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Tue, 8 Jan 2019 16:05:05 +0000 (17:05 +0100)
committerThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Tue, 8 Jan 2019 16:11:05 +0000 (17:11 +0100)
commitfda5c6405353f065b4774be13d19e60596524bb2
tree715ffa48b07e97e8373f7ccc63ad711e2e3deeb7
parentd786ea73c0c6ed256f56f79d62c5c63bf834158e
logging: Start using LinkTarget & UserIdentity in ManualLogEntry

This is a first, very small migration step. This is entirely
non-breaking, as all objects passed to these two functions already
matched the interfaces that are now required.

For the setTarget() method it's most obvious it really just needs a
LinkTarget value object, but not the entirety of the Title class
with all it's helper methods. Same for the performer. A ManualLogEntry
does not need to interact with the performer, just needs to know him.

This small change allows to slowly migrate away from code depending on
the User and Title classes.

Note this code currently does not have any test coverage, and I do not
plan to change this within this patch. I just don't have the time.

https://doc.wikimedia.org/cover/mediawiki-core/includes/logging/LogEntry.php.html

Change-Id: Id551f066ab02d5ca14346a39a55af4e7b6e4e042
includes/logging/LogEntry.php