X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FEventRelayerGroup.php;h=9360693a4b8e368635d624a02d2b0dd16a98630b;hb=424251a2cb5842727756d96f877c787c443ea056;hp=3af756dccbea244ec74059aa7663ad4002969e61;hpb=42fe7284cd78988f745a2f0f6a33e4921699b8dc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EventRelayerGroup.php b/includes/EventRelayerGroup.php index 3af756dccb..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(); } /**