Symfony try project in prod environment leads me to error

Hi :) I was happy to try my project in the prod environment for the first time, but well ... nothing happened as I expected ... :( Following the instructions from here: http://symfony.com/doc/current/cookbook/ deployment / tools.html

I get an error on my page "localhost / Symfony / web / app_dev.php":

ClassNotFoundException: Attempted to load class "SensioGeneratorBundle" from namespace "Sensio\Bundle\GeneratorBundle" in D:\logiciel\wamp\www\Symfony\app\AppKernel.php line 28. Do you need to "use" it from another namespace? 

Is it possible that the composer was mistaken or something else? I really don't know how to solve this problem.

Thank you very much in advance.

Regards, CUETO Vincent

+7
symfony composer-php
source share
2 answers

I had the same problem and solved:

 export SYMFONY_ENV=prod 
+20
source share

To clarify, running composer update really solves the problem.

+1
source share

All Articles