MediaWiki REL1_32
EventRelayerGroup Class Reference

Factory class for spawning EventRelayer objects using configuration. More...

Collaboration diagram for EventRelayerGroup:

Public Member Functions

 __construct (array $config)
 
 getRelayer ( $channel)
 

Static Public Member Functions

static singleton ()
 

Protected Attributes

array[] $configByChannel = []
 
EventRelayer[] $relayers = []
 

Detailed Description

Factory class for spawning EventRelayer objects using configuration.

Since
1.27

Definition at line 28 of file EventRelayerGroup.php.

Constructor & Destructor Documentation

◆ __construct()

EventRelayerGroup::__construct ( array $config)
Parameters
array[]$configChannel configuration

Definition at line 38 of file EventRelayerGroup.php.

Member Function Documentation

◆ getRelayer()

EventRelayerGroup::getRelayer ( $channel)
Parameters
string$channel
Returns
EventRelayer Relayer instance that handles the given channel

Definition at line 55 of file EventRelayerGroup.php.

◆ singleton()

static EventRelayerGroup::singleton ( )
static
Deprecated
since 1.27 Use MediaWikiServices::getInstance()->getEventRelayerGroup()
Returns
EventRelayerGroup

Definition at line 46 of file EventRelayerGroup.php.

References wfDeprecated().

Member Data Documentation

◆ $configByChannel

array [] EventRelayerGroup::$configByChannel = []
protected

Definition at line 30 of file EventRelayerGroup.php.

◆ $relayers

EventRelayer [] EventRelayerGroup::$relayers = []
protected

Definition at line 33 of file EventRelayerGroup.php.


The documentation for this class was generated from the following file: