/** * @param string $configName * @return string[] */ public function statusPeers($configName = 'default') { /** @var \DCarbone\PHPConsulAPI\Error $err */ list($peers, $err) = $this->_cb->getNamed($configName)->Status->peers(); if (null !== $err) { throw new \RuntimeException($err->getMessage()); } return $peers; }
/** * @param InputInterface $input * @return \DCarbone\PHPConsulAPI\Consul */ protected function getConsul(InputInterface $input) { return $this->_consulBag->getNamed($input->getOption('config')); }