Search code examples
symfonysymfony-cmf

Symfony cmf generate:bundle option


Why, conceptually, there is not inside symfony cmf app console generate bundle. I have tried php app/console generate:bundle, but it doesn't work.


Solution

  • The generate:bundle bundle command is provided by SensioGeneratorBundle.

    composer.json

    require:    
        ...
        "sensio/generator-bundle": "2.3.*@dev"
    

    Add it to your composer.json , update, register the bundle in app/AppKernel.php and the command will be available.