This repository was archived by the owner on Nov 14, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,12 @@ abstract class DownloadCommand extends Command
65
65
/**
66
66
* @var string The latest installer version
67
67
*/
68
- private $ latestInstallerVersion ;
68
+ protected $ latestInstallerVersion ;
69
69
70
70
/**
71
71
* @var string The version of the local installer being executed
72
72
*/
73
- private $ localInstallerVersion ;
73
+ protected $ localInstallerVersion ;
74
74
75
75
/**
76
76
* @var string The path to the downloaded file
Original file line number Diff line number Diff line change 13
13
14
14
use Symfony \Component \Console \Input \InputInterface ;
15
15
use Symfony \Component \Console \Output \OutputInterface ;
16
- use Symfony \Component \Filesystem \Filesystem ;
17
16
use Symfony \Component \Filesystem \Exception \IOException ;
18
17
19
18
/**
@@ -33,11 +32,6 @@ class SelfUpdateCommand extends DownloadCommand
33
32
*/
34
33
private $ tempDir ;
35
34
36
- /**
37
- * @var string The latest installer version
38
- */
39
- private $ latestInstallerVersion ;
40
-
41
35
/**
42
36
* @var string The URL where the latest installer version can be downloaded
43
37
*/
@@ -92,10 +86,7 @@ public function isEnabled()
92
86
*/
93
87
protected function initialize (InputInterface $ input , OutputInterface $ output )
94
88
{
95
- $ this ->fs = new Filesystem ();
96
- $ this ->output = $ output ;
97
-
98
- $ this ->latestInstallerVersion = $ this ->getUrlContents (Application::VERSIONS_URL );
89
+ parent ::initialize ($ input , $ output );
99
90
$ this ->remoteInstallerFile = 'http://symfony.com/installer ' ;
100
91
$ this ->currentInstallerFile = realpath ($ _SERVER ['argv ' ][0 ]) ?: $ _SERVER ['argv ' ][0 ];
101
92
$ this ->tempDir = sys_get_temp_dir ();
You can’t perform that action at this time.
0 commit comments