@@ 113-118 (lines=6) @@ | ||
110 | */ |
|
111 | private function addDebugMiddleware(array $options, HandlerStack &$stack) |
|
112 | { |
|
113 | if (!empty($options['debugLog']) |
|
114 | && !empty($options['logger']) |
|
115 | && !empty($options['messageFormatter']) |
|
116 | ) { |
|
117 | $stack->push(GuzzleMiddleware::log($options['logger'], $options['messageFormatter'])); |
|
118 | } |
|
119 | } |
|
120 | ||
121 | /** |
@@ 61-66 (lines=6) @@ | ||
58 | ||
59 | $stack = HandlerStack::create(); |
|
60 | ||
61 | if (!empty($options['debugLog']) |
|
62 | && !empty($options['logger']) |
|
63 | && !empty($options['messageFormatter']) |
|
64 | ) { |
|
65 | $stack->push(GuzzleMiddleware::log($options['logger'], $options['messageFormatter'])); |
|
66 | } |
|
67 | ||
68 | $clientOptions = [ |
|
69 | 'base_uri' => Utils::normalizeUrl($options['authUrl']), |