我發現控制檯像這樣運行:如何使用PHP控制檯Symfony2的
[email protected]:/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.
有什麼建議?
該語法看起來不正確。你應該從根目錄執行命令,而不是在應用程序文件夾內。 – xaav 2011-05-16 00:30:25
這是大約一年前... symfony是真的測試版 – 2011-05-18 07:03:34