MediaWiki
fundraising/REL1_35
DonationLogProcessor.php
Go to the documentation of this file.
1
<?php
2
8
class
DonationLogProcessor
{
9
10
protected
$prefixer
;
11
12
public
function
__construct
(
LogPrefixProvider
$prefixer
) {
13
$this->prefixer =
$prefixer
;
14
}
15
16
public
function
__invoke
( $record ) {
17
try
{
18
$record[
'message'
] = $this->prefixer->getLogMessagePrefix() . $record[
'message'
];
19
}
20
catch
( Exception $ex ) {
21
// logging shouldn't throw any exceptions
22
}
23
return
$record;
24
}
25
}
DonationLogProcessor
Adds a prefix from a LogPrefixProvider to log messages.
Definition
DonationLogProcessor.php:8
DonationLogProcessor\__construct
__construct(LogPrefixProvider $prefixer)
Definition
DonationLogProcessor.php:12
DonationLogProcessor\$prefixer
$prefixer
Definition
DonationLogProcessor.php:10
DonationLogProcessor\__invoke
__invoke( $record)
Definition
DonationLogProcessor.php:16
LogPrefixProvider
Definition
LogPrefixProvider.php:3
extensions
DonationInterface
gateway_common
DonationLogProcessor.php
Generated on Mon Nov 25 2024 16:14:05 for MediaWiki by
1.10.0