Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3dea854

Browse files
Update new Symfony project command
- fix installer path & update command to use wget - add condition to check if symfony-cli binary package is installed locally
1 parent f6b5446 commit 3dea854

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎bin/create-project.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ case "1ドル" in
2525
## SYMFONY
2626
###################################
2727
"symfony")
28-
curl -LsS http://symfony.com/installer > /tmp/symfony.$$.phar
29-
execInDir "$CODE_DIR" "php /tmp/symfony.$$.phar new '$CODE_DIR'"
30-
rm -f -- /tmp/symfony.$$.phar
28+
if command -v symfony >/dev/null 2>&1; then
29+
execInDir "$CODE_DIR" "symfony new '$CODE_DIR'"
30+
else
31+
wget https://get.symfony.com/cli/installer -O - | bash
32+
export PATH="$HOME/.symfony/bin:$PATH"
33+
execInDir "$CODE_DIR" "symfony new '$CODE_DIR'"
34+
fi
3135
;;
3236

3337
###################################

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /