/** * {@inheritdoc} */ public function discover($service) { if (null === ($identity = $this->registry->get($service))) { throw new ServiceNotFoundException(sprintf('Service "%s" not found', $service)); } return new Endpoint($identity, $this->driver); }
/** * @param string $name * * @return Identity */ public function get($name) { if (null === $this->registry->get($name)) { $this->update(); } return $this->registry->get($name); }