sensio/SensioGeneratorBundle — pull request #187 by emgiezet (2013-04-08 09:09:28+00:00)
Title: [2.2] Class 'Sensio\Bundle\GeneratorBundle\Command\ControllerGenerator' not found

PHP Fatal error: Class 'Sensio\Bundle\GeneratorBundle\Command\ControllerGenerator' not found in ..../vendor/sensio/generator-bundle/Sensio/Bundle/GeneratorBundle/Command/GenerateControllerCommand.php on line 332

I'm using the 2.2.2-dev

My bash history:

$ php app/console generate:controller

Welcome to the Symfony2 controller generator

Every page, and even sections of a page, are rendered by a controller.
This command helps you generate them easily.

First, you need to give the controller name you want to generate.
You must use the shortcut notation like AcmeBlogBundle:Post

Controller name: AppFronednBundle:Test
Bundle "AppFronednBundle" does not exists.
Controller name: DemoBundle:Test
Bundle "DemoBundle" does not exists.
Controller name: AppDemoBundle:Test

Determine the format to use for the routing.

Routing format (php, xml, yml, annotation) [annotation]: yml

Determine the format to use for templating.

Template format (twig, php) [twig]:

Instead of starting with a blank controller, you can add some actions now. An action
is a PHP function or method that executes, for example, when a given route is matched.
Actions should be suffixed by Action.

New action name (press to stop adding actions): test
Name "test" is not suffixed by Action
New action name (press to stop adding actions): testAction
Action route [/test]:
Templatename (optional) [AppDemoBundle:Test:test.html.twig]:

New action name (press to stop adding actions):

Summary before generation

You are going to generate a "AppDemoBundle:Test" controller
using the "yml" format for the routing and the "twig" format
for templating
Do you confirm generation [yes]?

Controller generation

PHP Fatal error: Class 'Sensio\Bundle\GeneratorBundle\Command\ControllerGenerator' not found in /home/mgz/workspace/ssandbox/cms/vendor/sensio/generator-bundle/Sensio/Bundle/GeneratorBundle/Command/GenerateControllerCommand.php on line 332
PHP Stack trace:
PHP 1. {main}() /home/mgz/workspace/ssandbox/cms/app/console:0
PHP 2. Symfony\Component\Console\Application->run() /home/mgz/workspace/ssandbox/cms/app/console:22
PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /home/mgz/workspace/ssandbox/cms/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:106
PHP 4. Symfony\Component\Console\Application->doRun() /home/mgz/workspace/ssandbox/cms/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:78
PHP 5. Symfony\Component\Console\Command\Command->run() /home/mgz/workspace/ssandbox/cms/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:193
PHP 6. Sensio\Bundle\GeneratorBundle\Command\GenerateControllerCommand->execute() /home/mgz/workspace/ssandbox/cms/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:240
PHP 7. Sensio\Bundle\GeneratorBundle\Command\GeneratorCommand->getGenerator() /home/mgz/workspace/ssandbox/cms/vendor/sensio/generator-bundle/Sensio/Bundle/GeneratorBundle/Command/GenerateControllerCommand.php:122
PHP 8. Sensio\Bundle\GeneratorBundle\Command\GenerateControllerCommand->createGenerator() /home/mgz/workspace/ssandbox/cms/vendor/sensio/generator-bundle/Sensio/Bundle/GeneratorBundle/Command/GeneratorCommand.php:38

Fatal error: Class 'Sensio\Bundle\GeneratorBundle\Command\ControllerGenerator' not found in /home/mgz/workspace/ssandbox/cms/vendor/sensio/generator-bundle/Sensio/Bundle/GeneratorBundle/Command/GenerateControllerCommand.php on line 332

Call Stack:
0.0002 231776 1. {main}() /home/mgz/workspace/ssandbox/cms/app/console:0
0.0162 1823720 2. Symfony\Component\Console\Application->run() /home/mgz/workspace/ssandbox/cms/app/console:22
0.0180 2017776 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /home/mgz/workspace/ssandbox/cms/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:106
0.1630 9948448 4. Symfony\Component\Console\Application->doRun() /home/mgz/workspace/ssandbox/cms/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:78
0.1645 9950200 5. Symfony\Component\Console\Command\Command->run() /home/mgz/workspace/ssandbox/cms/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:193
70.2977 10026096 6. Sensio\Bundle\GeneratorBundle\Command\GenerateControllerCommand->execute() /home/mgz/workspace/ssandbox/cms/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:240
71.7718 10026696 7. Sensio\Bundle\GeneratorBundle\Command\GeneratorCommand->getGenerator() /home/mgz/workspace/ssandbox/cms/vendor/sensio/generator-bundle/Sensio/Bundle/GeneratorBundle/Command/GenerateControllerCommand.php:122
71.7718 10026832 8. Sensio\Bundle\GeneratorBundle\Command\GenerateControllerCommand->createGenerator() /home/mgz/workspace/ssandbox/cms/vendor/sensio/generator-bundle/Sensio/Bundle/GeneratorBundle/Command/GeneratorCommand.php:38