I was trying to run my project for the first time in a production environment I did not go how I expected.
After following the instructions from here
https://symfony.com/doc/current/deployment.html I got an error in my localhost/Symfony/web/app_dev.php
page :
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 composer made a mistake or something? I really don't know how to solve this
I had the same problem and solved it by doing:
export SYMFONY_ENV=prod
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With