Skip to content
This repository was archived by the owner on Nov 14, 2019. It is now read-only.

Commit f7c45ec

Browse files
committed
Removing use of deprecated method ProgressBar->getStep from Download Command
Changing min symfony/console version because of deprecated functions
1 parent 64a5dba commit f7c45ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"require": {
1616
"php": ">=5.4.0",
1717
"guzzlehttp/guzzle": "~5.0",
18-
"symfony/console": "~2.5",
18+
"symfony/console": "~2.6",
1919
"symfony/filesystem": "~2.5",
2020
"raulfraile/distill": "~0.9,!=0.9.3,!=0.9.4"
2121
},

src/Symfony/Installer/DownloadCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ protected function download()
102102
return $this->formatSize($bar->getMaxSteps());
103103
});
104104
ProgressBar::setPlaceholderFormatterDefinition('current', function (ProgressBar $bar) {
105-
return str_pad($this->formatSize($bar->getStep()), 11, ' ', STR_PAD_LEFT);
105+
return str_pad($this->formatSize($bar->getProgress()), 11, ' ', STR_PAD_LEFT);
106106
});
107107

108108
$progressBar = new ProgressBar($this->output, $downloadSize);

0 commit comments

Comments
 (0)