/** * Build the connector with given client and platform config. * * @param ClientInterface $client * @param PlatformConfigInterface $config * * @return ConnectorInterface * @throws \WebservicesNl\Common\Exception\Client\InputException */ private function buildConnector(ClientInterface $client, PlatformConfigInterface $config) { $adapter = $this->buildAdapter($client); $connectorName = $config->getConnectorName(); return new $connectorName($adapter); }