src/Handlers/OpenApiHandler.php 1 location
|
@@ 298-304 (lines=7) @@
|
| 295 |
|
$settings['requestBody'] = $requestBody; |
| 296 |
|
} |
| 297 |
|
|
| 298 |
|
if ($handler['authorization'] instanceof BearerTokenAuthorization) { |
| 299 |
|
$settings['security'] = [ |
| 300 |
|
[ |
| 301 |
|
'Bearer' => [], |
| 302 |
|
], |
| 303 |
|
]; |
| 304 |
|
} |
| 305 |
|
$settings['responses'] = $responses; |
| 306 |
|
$list[$path][strtolower($handler['endpoint']->getMethod())] = $settings; |
| 307 |
|
} |
src/Handlers/SwaggerHandler.php 1 location
|
@@ 241-247 (lines=7) @@
|
| 238 |
|
'parameters' => $this->createParamsList($handler['handler']), |
| 239 |
|
|
| 240 |
|
]; |
| 241 |
|
if ($handler['authorization'] instanceof BearerTokenAuthorization) { |
| 242 |
|
$settings['security'] = [ |
| 243 |
|
[ |
| 244 |
|
'Bearer' => [], |
| 245 |
|
], |
| 246 |
|
]; |
| 247 |
|
} |
| 248 |
|
$settings['responses'] = $responses; |
| 249 |
|
$list[$path][strtolower($handler['endpoint']->getMethod())] = $settings; |
| 250 |
|
} |