Symfony 没有生成包

Symfony is not generating bundle

我在新的 LAMP 系统上安装了新的 Symfony(使用 "symfony new test")。我正在尝试生成一个包,但它失败了。输出为:

tugrul@tugrul-mint ~/tmp/test2 $ php app/console generate:bundle --namespace NV/TestdBundle --bundle-name=NVTestdBundle --dir=/home/tugrul/tmp/test2/src --format yml --structure

Welcome to the Symfony2 bundle generator  
BLABLABLA
Do you confirm generation [yes]? 

 Bundle generation  

[Twig_Error_Syntax]                                                                                                                                                                      
An exception has been thrown during the compilation of a template ("Level "info" is not defined, use one of: 100, 200, 250, 300, 400, 500, 550, 600") in "bundle/index.html.twig.twig".  

[Psr\Log\InvalidArgumentException]                                               
Level "info" is not defined, use one of: 100, 200, 250, 300, 400, 500, 550, 600  

PHP版本:

$ php -v
PHP 5.5.9-1ubuntu4.13 (cli) (built: Sep 29 2015 15:24:49) 

在具有完全相同版本 PHP 的生产服务器上,Symfony 成功创建了一个包,但在本地开发盒上没有。

我错过了什么吗?或者有没有什么东西要先安装到 运行 symfony 而文档中没有提到?

此致。

我无法重现此错误。以下命令对我有用:

$ symfony new test
$ cd test/
$ php app/console generate:bundle --namespace=NV/TestdBundle --bundle-name=NVTestdBundle --dir=src --format=yml --structure

请注意,我已将 --dir 选项值更改为 src,因为我在项目目录中。

如果仍然不适合您,请记住您可以将 -vvv 附加到任何 Symfony 命令以输出非常详细的错误信息。

问题是语言环境。将其设置为 en_US.UTF-8,现在就可以了。白白浪费了2天...