gpt4 book ai didi

command-line-interface - 如何在 Symfony2 中使用 php 控制台

转载 作者:行者123 更新时间:2023-12-01 09:09:24 24 4
gpt4 key购买 nike

我找到了控制台并像这样运行它:

root@valugi-laptop:/var/www/sandbox/hello# php console
Symfony version 2.0.0-DEV - hello

Usage:
Symfony [options] command [arguments]

Options:
--help -h Display this help message.
--quiet -q Do not output any message.
--verbose -v Increase verbosity of messages.
--version -V Display this program version.
--color -c Force ANSI color output.
--no-interaction -n Do not ask any interactive question.
--shell -s Launch the shell.

Available commands:
help Displays help for a command (?)
list Lists commands
assets
:install
bundle
:pharize
container
:graphviz
doctrine
:generate-proxies
init
:application
:bundle
router
:debug Displays current routes for an application
:dump-apache

但我无法运行任何这些命令。我正在尝试这样:

php 控制台 Symfony -h

但我明白了

[InvalidArgumentException]         
Command "Symfony" is not defined.

有什么建议吗?

最佳答案

控制台是这样使用的:$ php app/console [command name]

关于command-line-interface - 如何在 Symfony2 中使用 php 控制台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2946391/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com