瀏覽代碼

[Console] added the version to the default shell prompt

Fabien Potencier 15 年之前
父節點
當前提交
008d9da88f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Components/Console/Shell.php

+ 1 - 1
src/Symfony/Components/Console/Shell.php

@@ -134,7 +134,7 @@ class Shell
   {
     return <<<EOF
 
-Welcome to the <info>{$this->application->getName()}</info> shell.
+Welcome to the <info>{$this->application->getName()}</info> shell (<comment>{$this->application->getVersion()}</comment>).
 
 At the prompt, type <comment>help</comment> for some help,
 or <comment>list</comment> to get a list available commands.