Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5957522
EventSubmitter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
824 B
Referenced Files
None
Subscribers
None
EventSubmitter.php
View Options
<?php
namespace
MediaWiki\Extension\EventLogging\MetricsPlatform
;
use
MediaWiki\Extension\EventLogging\EventSubmitter\EventSubmitter
as
EventLoggingEventSubmitter
;
use
Wikimedia\MetricsPlatform\EventSubmitter
as
MetricsPlatformEventSubmitter
;
/**
* Adapts implementations of the EventLogging EventSubmitter interface to the equivalent Metrics
* Platform interface, thereby allowing them to vary independently.
*/
class
EventSubmitter
implements
MetricsPlatformEventSubmitter
{
/** @var EventLoggingEventSubmitter */
private
$eventSubmitter
;
public
function
__construct
(
EventLoggingEventSubmitter
$eventSubmitter
)
{
$this
->
eventSubmitter
=
$eventSubmitter
;
}
/** @inheritDoc */
public
function
submit
(
string
$streamName
,
array
$event
):
void
{
$this
->
eventSubmitter
->
submit
(
$streamName
,
$event
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 05:10 (2 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9c/4f/db5355539ce9a955d69a8eb78a98
Default Alt Text
EventSubmitter.php (824 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment