“symfony new”控制台命令中的“php=value”参数有何用途?

问题描述 投票:0回答:1

symfony help new
的输出给出

Description:
  Create a new Symfony project

Usage:
  symfony local:new [options] [--] [<directory>]

Arguments:
  directory  Directory of the project to create


Options:
  --dir=value      Project directory
  --version=value  The version of the Symfony skeleton (a version or one of "lts", "stable", "next", or "previous")
  --full           Use github.com/symfony/website-skeleton (deprecated, use --webapp instead)
  --demo           Use github.com/symfony/demo
  --webapp         Add the webapp pack to get a fully configured web project
  --api            Add the api pack to get a fully configured api project
  --book           Clone the Symfony: The Fast Track book project
  --docker         Enable Docker support
  --no-git         Do not initialize Git
  --upsun          Initialize Upsun configuration
  --cloud          Initialize Platform.sh configuration
  --debug          Display commands output
  --php=value      PHP version to use

--php=value
参数有什么作用?

“要使用的 PHP 版本” 到底是什么意思?在何时何地使用?

这些选项是否在网上有更详细的记录?

php symfony symfony-console
1个回答
0
投票

基本上,此选项所做的唯一事情就是创建文件

.php-version
并用您选择的值填充它。

Symfony CLI 将使用它来选择不同的 PHP 运行时来执行命令,如此处所述

© www.soinside.com 2019 - 2024. All rights reserved.