diff --git a/src/Symfony/Installer/DownloadCommand.php b/src/Symfony/Installer/DownloadCommand.php index 1715b27..2ac118d 100644 --- a/src/Symfony/Installer/DownloadCommand.php +++ b/src/Symfony/Installer/DownloadCommand.php @@ -65,12 +65,12 @@ abstract class DownloadCommand extends Command /** * @var string The latest installer version */ - private $latestInstallerVersion; + protected $latestInstallerVersion; /** * @var string The version of the local installer being executed */ - private $localInstallerVersion; + protected $localInstallerVersion; /** * @var string The path to the downloaded file diff --git a/src/Symfony/Installer/SelfUpdateCommand.php b/src/Symfony/Installer/SelfUpdateCommand.php index a35c3f9..4e0dbc9 100644 --- a/src/Symfony/Installer/SelfUpdateCommand.php +++ b/src/Symfony/Installer/SelfUpdateCommand.php @@ -13,7 +13,6 @@ use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Exception\IOException; /** @@ -33,11 +32,6 @@ class SelfUpdateCommand extends DownloadCommand */ private $tempDir; - /** - * @var string The latest installer version - */ - private $latestInstallerVersion; - /** * @var string The URL where the latest installer version can be downloaded */ @@ -92,10 +86,7 @@ public function isEnabled() */ protected function initialize(InputInterface $input, OutputInterface $output) { - $this->fs = new Filesystem(); - $this->output = $output; - - $this->latestInstallerVersion = $this->getUrlContents(Application::VERSIONS_URL); + parent::initialize($input, $output); $this->remoteInstallerFile = 'http://symfony.com/installer'; $this->currentInstallerFile = realpath($_SERVER['argv'][0]) ?: $_SERVER['argv'][0]; $this->tempDir = sys_get_temp_dir();