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.
Asked
Active
Viewed 451 times
2 Answers
3
Symfony CMF is just the Symfony2 full-stack framework with some extra bundles and extensions.
The generate:bundle
command is a command from the SensioGeneratorBundle. That bundle is included in the symfony standard edition, but not in the symfony cmf standard edition. Just install that bundle and you should be good to go:
$ php composer.phar require sensio/generator-bundle:2.3.*
// app/AppKernel.php
// ...
public function registerBundles()
{
// ...
if (...) {
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle()
}
}

Wouter J
- 41,455
- 15
- 107
- 112
1
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.

Nicolai Fröhlich
- 51,330
- 11
- 126
- 130