我对symfony2很新,但熟悉symfony。我正在进行symblog教程。目前进展顺利,但我在生成bundle方面遇到了一些困难?
教程指示运行以下命令:
php app/console generate:bundle --namespace=Blogger/BlogBundle --format=yml
完成后,它应在捆绑包中添加引用/生成代码。
- app/AppKernel.php
- app/config/routing.yml
Welcome to the Symfony2 bundle generator
Your application code must be written in bundles. This command helps
you generate them easily.
Each bundle is hosted under a namespace (like Acme/Bundle/BlogBundle).
The namespace should begin with a "vendor" name like your company name, your
project name, or your client name, followed by one or more optional category
sub-namespaces, and it should end with the bundle name itself
(which must have Bundle as a suffix).
See http://symfony.com/doc/current/cookbook/bundles/best_practices.html#index-1 for more
details on bundle naming conventions.
Use / instead of \ for the namespace delimiter to avoid any problem.
Bundle namespace [Blogger/BlogBundle]: