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