use GuzzleHttp\ClientInterface;
/**
 * An http client.
 *
 * @var \GuzzleHttp\ClientInterface
 */
protected $httpClient;
 /**
 * The form constructor.
 *
 * @param \GuzzleHttp\ClientInterface $http_client
 *   Guzzle client interface.
 */
public function __construct(ClientInterface $http_client) {
 $this->httpClient = $http_client;
}
/**
 * {@inheritdoc}
 */
public static function create(ContainerInterface $container) {
 return new static(
   $container->get('http_client'),
 );
}