ClassNotFoundException Symfony ClassNotFoundException Symfony symfony symfony

ClassNotFoundException Symfony


first: check if the file src\Destination\AppBundle\DestinationAppBundle.php does exist

second: open DestinationAppBundle.php and chek if the namespace is Destination\AppBundle

third: check if the classname declaration is the same as the filename (in your case : DestinationAppBundle)


Update composer.json like this:

"psr-4": {    "AppBundle\\": "src/AppBundle",    "UserBundle\\": "src/UserBundle"},

After edit composer.json YOU MUST RUN composer dump-autoload


Verify in AppKernel.php the use of this class DestinationAppBundle

And the namespace in the class DestinationAppBundle