} } /**
* Configures the stack using services tagged as http_client_middleware.
*
* @param \GuzzleHttp\HandlerStack $handler_stack
* The handler stack
*/
public function configure(HandlerStack
$handler_stack) { $this->
initializeMiddlewares();
foreach ($this->middlewares
as $middleware_id =>
$middleware) { $handler_stack->
push($middleware,
$middleware_id);
} }}