Contributed by
Roland Franssen
in #19278.
在Symfony 3.3中,FrameworkBundle提供了一个名为 about
的命令。这个命令提供的是你的程序和PHP环境的信息。它的output在调试问题时十分有用,因此当开发者在使用你的软件后报告问题时,你应当考虑使用它。
作为一个例子,这是在 Symfony Demo application 中执行 about
命令时的输出:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | $ ./bin/console about
-------------------- -------------------------------------------
Symfony
-------------------- -------------------------------------------
Version 3.2.5
End of maintenance 07/2017
End of life 01/2018
-------------------- -------------------------------------------
Kernel
-------------------- -------------------------------------------
Type AppKernel
Name app
Environment dev
Debug true
Charset UTF-8
Root directory ./app
Cache directory ./var/cache/dev (587 KiB)
Log directory ./var/logs (1.5 MiB)
-------------------- -------------------------------------------
PHP
-------------------- -------------------------------------------
Version 7.1.3
Architecture 64 bits
Intl locale en_US_POSIX
Timezone America/New_York (2017-03-31T16:55:46-05:00)
OPcache true
APCu true
Xdebug false
-------------------- ------------------------------------------- |