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

Commit b0ce47c

Browse files
committed
minor #189 Removing deprecated method from DownloadCommand (jzawadzki)
This PR was merged into the 1.0-dev branch. Discussion ---------- Removing deprecated method from DownloadCommand Hi, This small pull request fix deprecation noted in #188 JZ Commits ------- f7c45ec Removing use of deprecated method ProgressBar->getStep from Download Command
2 parents 64a5dba + f7c45ec commit b0ce47c

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)