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

Commit 23fecee

Browse files
committed
minor #67 suggest to use symfony.phar on Windows (xabbuh)
This PR was merged into the 1.0-dev branch. Discussion ---------- suggest to use symfony.phar on Windows The command that is suggested since #59 when the download of a non-existent Symfony version fails, is not sufficient on Windows. We need to suggest `php symfony.phar ...` instead. Commits ------- 6a7324d suggest to use symfony.phar on Windows
2 parents 801b0ce + 6a7324d commit 23fecee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Installer/NewCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,9 @@ private function download()
240240
throw new \RuntimeException(sprintf(
241241
"The selected version (%s) cannot be installed because it does not exist.\n".
242242
"Try the special \"latest\" version to install the latest stable Symfony release:\n".
243-
'php symfony %s %s latest',
243+
'%s %s %s latest',
244244
$this->version,
245+
defined('PHP_WINDOWS_VERSION_BUILD') ? 'php symfony.phar' : 'symfony',
245246
$this->getName(),
246247
$this->projectName
247248
));

0 commit comments

Comments
 (0)