48 $this->connectionCls = $connectionCls;
49 $this->eventClasses = $eventClasses;
52 public function newConnection($bot, $config)
54 $connectionCls = $this->connectionCls;
55 return new $connectionCls($bot, $config, $this->eventClasses);
$eventClasses
Mapping of event interfaces to their factory.
$connectionCls
Class to use to create connections.
__construct($connectionCls, $eventClasses)