symfony error after update Composer

Asked

Viewed 35 times

0

When I executed the commands

Composer require symfony/filesystem Post update , is occurring the following error below in my project, on any route I access. Could you help me ? I am using symfony 3.0 with Mysql database on Apache server.

Uncaught ReflectionException: Class does not exist in C:\xampp\htdocs\univrmanut_desenvolvimento\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\ContainerBuilder.php:305 Stack trace: #0 C:\xampp\htdocs\univrmanut_desenvolvimento\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\ContainerBuilder.php(305): ReflectionClass->__construct('') #1 C:\xampp\htdocs\univrmanut_desenvolvimento\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php(771): Symfony\Component\DependencyInjection\ContainerBuilder->addObjectResource('AppKernel') #2 C:\xampp\htdocs\univrmanut_desenvolvimento\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php(640): Symfony\Component\HttpKernel\Kernel->buildContainer() #3 C:\xampp\htdocs\univrmanut_desenvolvimento\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php(135): Symfony\Component\HttpKernel\Kernel->initializeContainer() #4 C:\xampp\htdocs\univrmanut_desenvolvimento\vendor\symfony\symfony\src\Symfony\Component\Http in C:\xampp\htdocs\univrmanut_desenvolvimento\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\ContainerBuilder.php on line 305

  • 1

    It seems that you have some project dependency problem, try to reinstall the dependencies

  • 1

    I managed to fix it! I removed the Symfony folder from the vendor folder, ran Composer update again and restarted the apache server and the error was fixed. Thank you!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.