configFactory = $configFactory; } /** * Get connection by name. * * @param string $connectionName * @return Config */ public function get($connectionName) { if (!isset($this->pool[$connectionName])) { $this->pool[$connectionName] = $this->configFactory->create(['connectionName' => $connectionName]); } return $this->pool[$connectionName]; } }