Skip to content
Advertisement

Symfony 4 – ClassNotFoundException Kernel

I’m actually upgrade my symfony 3.4 project to symfony 4.0. After clone bundles from my gitlab repositories with composer update, I have an error :

JavaScript

Ok…. Easy… go index.php line 32… but, Kernel is load with AppKernel, so any idea why I have this error or where I can search?

Thank you for your help.

index.php

JavaScript

And in the “src” directory, I have the Kernel.php file

JavaScript

Advertisement

Answer

Symfony 4 uses the folder App for autoload psr-4. I tried to change it, but it didn’t work out. Check the namespace at your composer.json file, in the property autoload and then psr-4. Maybe you changed the default one.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement