1 | <?php declare(strict_types=1); |
||
13 | final class ApiSettings |
||
14 | { |
||
15 | const NAMESPACE = 'ApiClients\\Client\\RabbitMQ\\Management\\Resource'; |
||
16 | |||
17 | const TRANSPORT_OPTIONS = [ |
||
18 | Options::HYDRATOR_OPTIONS => [ |
||
19 | HydratorOptions::NAMESPACE => self::NAMESPACE, |
||
20 | HydratorOptions::NAMESPACE_DIR => __DIR__ . DIRECTORY_SEPARATOR . 'Resource' . DIRECTORY_SEPARATOR, |
||
21 | ], |
||
22 | Options::TRANSPORT_OPTIONS => [ |
||
23 | TransportOptions::HEADERS => [ |
||
24 | 'Content-Type' => 'application/json', |
||
25 | ], |
||
26 | TransportOptions::MIDDLEWARE => [ |
||
27 | JsonDecodeMiddleware::class, |
||
28 | UserAgentMiddleware::class, |
||
29 | ], |
||
30 | TransportOptions::DEFAULT_REQUEST_OPTIONS => [ |
||
31 | UserAgentMiddleware::class => [ |
||
32 | UserAgentMiddlewareOptions::STRATEGY => UserAgentStrategies::PACKAGE_VERSION, |
||
33 | UserAgentMiddlewareOptions::PACKAGE => 'api-clients/rabbitmq-management', |
||
34 | ], |
||
35 | ], |
||
36 | ], |
||
37 | ]; |
||
38 | |||
39 | public static function getOptions( |
||
61 | } |
||
62 |