MediaWiki  1.28.1
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.

Author
Aaron Schulz
Since
1.27

Definition at line 10 of file EventRelayerGroup.php.

Constructor & Destructor Documentation

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

Definition at line 20 of file EventRelayerGroup.php.

Member Function Documentation

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

Definition at line 36 of file EventRelayerGroup.php.

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

Definition at line 28 of file EventRelayerGroup.php.

Member Data Documentation

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

Definition at line 12 of file EventRelayerGroup.php.

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

Definition at line 15 of file EventRelayerGroup.php.


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