1 | <?php |
||
17 | class HttpAdapterManager extends AbstractManager |
||
18 | { |
||
19 | /** |
||
20 | * The factory instance. |
||
21 | * |
||
22 | * @var \HiddeCo\HttpAdapter\HttpAdapterFactory |
||
23 | */ |
||
24 | protected $factory; |
||
25 | |||
26 | /** |
||
27 | * Create a new HTTP adapter manager instance. |
||
28 | * |
||
29 | * @param \Illuminate\Contracts\Config\Repository |
||
30 | * @param \HiddeCo\HttpAdapter\HttpAdapterFactory |
||
31 | */ |
||
32 | public function __construct(Repository $config, HttpAdapterFactory $factory) |
||
37 | |||
38 | /** |
||
39 | * Create the connection instance. |
||
40 | * |
||
41 | * @param array $config |
||
42 | * |
||
43 | * @return \Ivory\HttpAdapter\HttpAdapterInterface |
||
44 | */ |
||
45 | protected function createConnection(array $config) |
||
49 | |||
50 | /** |
||
51 | * Get the configuration name. |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | protected function getConfigName() |
||
59 | |||
60 | /** |
||
61 | * Get the configuration for a connection. |
||
62 | * |
||
63 | * @param string $name |
||
64 | * |
||
65 | * @throws \InvalidArgumentException |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getConnectionConfig($name) |
||
85 | |||
86 | /** |
||
87 | * Get the global configuration. |
||
88 | * |
||
89 | * @return array |
||
90 | */ |
||
91 | public function getGlobalConfig() |
||
109 | |||
110 | /** |
||
111 | * Get the factory instance. |
||
112 | * |
||
113 | * @return \HiddeCo\HttpAdapter\HttpAdapterFactory |
||
114 | */ |
||
115 | public function getFactory() |
||
119 | } |
||
120 |