i am noob and i am trying to run xdebug under phpstorm, everytime i get this error:
PHP Fatal error: Class 'Symfony\Bundle\FrameworkBundle\Controller\Controller' not found in /home/.../..../src/Acme/DemoBundle/Controller/DemoController.php on line 15.
In the beginnig i was thinking that is related windows 7+ uniformserver, because i was using this combination. Later i have installed ubuntu linux, lamp, latest xdebug and phpstorm. After this i have tried debugging default symfony project Acme (so i did not change any files), but nothing changed.
Have you ever encountered problem like this? If yes, can you please tell me how can i solve this?
Thank you.
composer install
from the command line). Can you paste the code in your controller pls. Are you getting this error only when trying to run xdebug, or even with xdebug disabled? Also are you using the APC class loader? - Pierreapp_dev.php
orapp.php
? This seems to me like cache error (like @Pierre suggested). Also, try restartingLAMP
to forceAPC
cache resetting - Jovan Perovic