clientResolver = $clientResolver; $this->clientFactories = $clientFactories; } /** * @return ClientFactoryInterface */ private function getClientFactory() { return $this->clientFactories[$this->clientResolver->getCurrentEngine()]; } /** * @inheritdoc */ public function create(array $options = []) { return $this->getClientFactory()->create($options); } }