X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FEventRelayerGroup.php;h=9360693a4b8e368635d624a02d2b0dd16a98630b;hb=c6defb358df6c01398bc75d131acb0fbcc9e899d;hp=9dfac795a6a4ce59c1cb97363ad24bacb897e200;hpb=734ca2b4d2a1246fb0ea1e54b861ab423ab5e257;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(); } /**