X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FEventRelayerGroup.php;h=091a5cae68bc0ca1cdf40d26ebb1cae0cb056e2a;hb=9d9b2e385414c4cde629e8745088dfa48a61f12f;hp=9dfac795a6a4ce59c1cb97363ad24bacb897e200;hpb=f9d7d3b8561dab3ddfd8798a77a5b72e03ac8c2b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EventRelayerGroup.php b/includes/EventRelayerGroup.php index 9dfac795a6..091a5cae68 100644 --- a/includes/EventRelayerGroup.php +++ b/includes/EventRelayerGroup.php @@ -1,8 +1,26 @@ configByChannel = $config->get( 'EventRelayerConfig' ); - } - - /** - * @return EventRelayerGroup - */ - public static function singleton() { - if ( !self::$instance ) { - self::$instance = new self( RequestContext::getMain()->getConfig() ); - } - - return self::$instance; + public function __construct( array $config ) { + $this->configByChannel = $config; } /**