2013-06-11 2 views
2

새로운 번들을 생성하고 싶지만 generate : bundle이 정의되어 있지 않습니다.symfony2 - 생성 : 번들이 정의되지 않았습니다.

내가이 명령을 시도 :

php app/console list --raw 

생성 : 번들이 표시되지 않습니다 ... 명령의

출력 : 여기에 무슨 일이 일어나고 무엇

help         Displays help for a command 
list         Lists commands 
assetic:dump       Dumps all assets to the filesystem 
assets:install      Installs bundles web assets under a public web directory 
cache:clear       Clears the cache 
cache:warmup       Warms up an empty cache 
config:dump-reference     Dumps default configuration for an extension 
container:debug      Displays current services for an application 
doctrine:cache:clear-metadata   Clears all metadata cache for an entity manager 
doctrine:cache:clear-query   Clears all query cache for an entity manager 
doctrine:cache:clear-result   Clears result cache for an entity manager 
doctrine:database:create    Creates the configured databases 
doctrine:database:drop    Drops the configured databases 
doctrine:ensure-production-settings Verify that Doctrine is properly configured for a production environment. 
doctrine:generate:entities   Generates entity classes and method stubs from your mapping information 
doctrine:mapping:convert    Convert mapping information between supported formats. 
doctrine:mapping:import    Imports mapping information from an existing database 
doctrine:mapping:info     Shows basic information about all mapped entities 
doctrine:query:dql     Executes arbitrary DQL directly from the command line. 
doctrine:query:sql     Executes arbitrary SQL directly from the command line. 
doctrine:schema:create    Executes (or dumps) the SQL needed to generate the database schema 
doctrine:schema:drop     Executes (or dumps) the SQL needed to drop the current database schema 
doctrine:schema:update    Executes (or dumps) the SQL needed to update the database schema to match the current mapping metadata 
doctrine:schema:validate    Validates the doctrine mapping files 
fos:user:activate      Activate a user 
fos:user:change-password    Change the password of a user. 
fos:user:create      Create a user. 
fos:user:deactivate     Deactivate a user 
fos:user:demote      Demote a user by removing a role 
fos:user:promote      Promotes a user by adding a role 
generate:doctrine:entities   Generates entity classes and method stubs from your mapping information 
init:acl        Mounts ACL tables in the database 
init:jms-secure-random     
orm:convert:mapping     Convert mapping information between supported formats. 
router:debug       Displays current routes for an application 
router:dump-apache     Dumps all routes as Apache rewrite rules 
router:match       Helps debug routes by simulating a path info match 
swiftmailer:spool:send    Sends emails from the spool 
translation:update     Updates the translation file 
twig:lint        Lints a template and outputs encountered errors 

?

+0

AppKernel에서 SensioGeneratorBundle이 활성화되어 있고 composer.json 파일에 있습니까? – Simon

+0

@ Simon => 아니, 그랬지. 내가 묶음을 청소할 때 실수로 그것을 제거했을거야. 답을하면 받아 들일거야! 고맙습니다. – CoachNono

답변

16

composer.json에이 줄이 있습니까?

"sensio/generator-bundle": "2.3.*" 

그리고이 하나가 AppKernel.php (개발자, 테스트 섹션에 있음)입니까?

new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); 
1

먼저 composer require sensio/generator-bundle을 수행해야합니다.

관련 문제