@@ 36-47 (lines=12) @@ | ||
33 | * @param IO\IOInterface $io |
|
34 | * @param Config $config |
|
35 | */ |
|
36 | public function __construct($url, $destination, $useRedirector, IO\IOInterface $io, Config $config) |
|
37 | { |
|
38 | $this->setURL($url); |
|
39 | $this->setDestination($destination); |
|
40 | $this->setCA($config->get('capath'), $config->get('cafile')); |
|
41 | $this->setupAuthentication( |
|
42 | $io, |
|
43 | $useRedirector, |
|
44 | $config->get('github-domains') ?: array(), |
|
45 | $config->get('gitlab-domains') ?: array() |
|
46 | ); |
|
47 | } |
|
48 | ||
49 | public function __destruct() |
|
50 | { |
@@ 31-41 (lines=11) @@ | ||
28 | * @param IO\IOInterface $io |
|
29 | * @param Config $config |
|
30 | */ |
|
31 | public function __construct($url, IO\IOInterface $io, Config $config) |
|
32 | { |
|
33 | $this->setURL($url); |
|
34 | $this->setCA($config->get('capath'), $config->get('cafile')); |
|
35 | $this->setupAuthentication( |
|
36 | $io, |
|
37 | false, |
|
38 | $config->get('github-domains') ?: array(), |
|
39 | $config->get('gitlab-domains') ?: array() |
|
40 | ); |
|
41 | } |
|
42 | ||
43 | public function getCurlOptions() |
|
44 | { |