X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FEventRelayerGroup.php;h=9360693a4b8e368635d624a02d2b0dd16a98630b;hb=5473e9e9eeea71b0a32b2b0e703529e196721407;hp=9dfac795a6a4ce59c1cb97363ad24bacb897e200;hpb=d716155c8b2d6e4a51a4110195cee7a1794846e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EventRelayerGroup.php b/includes/EventRelayerGroup.php index 9dfac795a6..9360693a4b 100644 --- a/includes/EventRelayerGroup.php +++ b/includes/EventRelayerGroup.php @@ -1,4 +1,6 @@ configByChannel = $config->get( 'EventRelayerConfig' ); + public function __construct( array $config ) { + $this->configByChannel = $config; } /** + * @deprecated since 1.27 Use MediaWikiServices::getInstance()->getEventRelayerGroup() * @return EventRelayerGroup */ public static function singleton() { - if ( !self::$instance ) { - self::$instance = new self( RequestContext::getMain()->getConfig() ); - } - - return self::$instance; + return MediaWikiServices::getInstance()->getEventRelayerGroup(); } /**