@@ -16,7 +16,7 @@ class DownloadManager
16
16
* @var \Composer\Package\CompletePackage
17
17
*/
18
18
private $ ownerPackage ;
19
-
19
+
20
20
/**
21
21
* @var \Composer\Downloader\DownloadManager
22
22
*/
@@ -26,7 +26,7 @@ class DownloadManager
26
26
* @var \Composer\Installer\InstallationManager
27
27
*/
28
28
private $ installationManager ;
29
-
29
+
30
30
/**
31
31
* @var \Composer\Cache
32
32
*/
@@ -46,7 +46,7 @@ class DownloadManager
46
46
* @var \Vaimo\WebDriverBinaryDownloader\Analysers\PlatformAnalyser
47
47
*/
48
48
private $ platformAnalyser ;
49
-
49
+
50
50
/**
51
51
* @var \Vaimo\WebDriverBinaryDownloader\Utils\SystemUtils
52
52
*/
@@ -91,13 +91,13 @@ public function __construct(
91
91
$ this ->driverPkgFactory = $ driverPkgFactory ;
92
92
$ this ->pluginConfig = $ pluginConfig ;
93
93
$ this ->composer = $ composer ;
94
-
94
+
95
95
$ this ->platformAnalyser = new \Vaimo \WebDriverBinaryDownloader \Analysers \PlatformAnalyser ();
96
96
$ this ->systemUtils = new \Vaimo \WebDriverBinaryDownloader \Utils \SystemUtils ();
97
97
$ this ->dataUtils = new \Vaimo \WebDriverBinaryDownloader \Utils \DataUtils ();
98
98
$ this ->stringUtils = new \Vaimo \WebDriverBinaryDownloader \Utils \StringUtils ();
99
99
}
100
-
100
+
101
101
public function downloadRelease (array $ versions )
102
102
{
103
103
$ executableName = $ this ->dataUtils ->extractValue (
@@ -107,7 +107,7 @@ public function downloadRelease(array $versions)
107
107
);
108
108
109
109
$ ownerName = $ this ->ownerPackage ->getName ();
110
-
110
+
111
111
if (!$ executableName ) {
112
112
$ platformName = $ this ->platformAnalyser ->getPlatformName ();
113
113
@@ -117,7 +117,7 @@ public function downloadRelease(array $versions)
117
117
}
118
118
119
119
$ name = sprintf ('%s-virtual ' , $ ownerName );
120
-
120
+
121
121
$ relativePath = $ this ->systemUtils ->composePath (
122
122
$ this ->ownerPackage ->getName (),
123
123
'downloads '
@@ -128,13 +128,7 @@ public function downloadRelease(array $versions)
128
128
'downloads '
129
129
);
130
130
131
- echo "== downloadRelease fullpath == \n" ;
132
- \Symfony \Component \VarDumper \VarDumper::dump ($ fullPath );
133
-
134
131
while ($ version = array_shift ($ versions )) {
135
- \Symfony \Component \VarDumper \VarDumper::dump ($ this ->getDownloadUrl ($ version ));
136
- \Symfony \Component \VarDumper \VarDumper::dump ($ relativePath );
137
-
138
132
$ package = $ this ->driverPkgFactory ->create (
139
133
$ name ,
140
134
$ this ->getDownloadUrl ($ version ),
0 commit comments