Skip to content

Commit 8487557

Browse files
committed
Listen to CMB, latest Symfony Console should and keep use setProgress.
1 parent b64dd5e commit 8487557

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Package/PHP/Command/Install/Windows/Binary.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ private function download($url)
196196
),
197197
array(
198198
'notification' => function ($notificationCode, $severity, $message, $messageCode, $bytesTransferred, $bytesMax) use ($output, $progress) {
199-
200199
switch ($notificationCode) {
201200
case STREAM_NOTIFY_RESOLVE:
202201
case STREAM_NOTIFY_AUTH_REQUIRED:
@@ -219,7 +218,7 @@ private function download($url)
219218
break;
220219

221220
case STREAM_NOTIFY_PROGRESS:
222-
$progress->setCurrent($bytesTransferred);
221+
$progress->setProgress($bytesTransferred);
223222
break;
224223
};
225224
},

0 commit comments

Comments
 (0)