php - Uncaught exception 'ReflectionException' with message 'xxxxxxxxx does not exist' in
751
So I was using silex and was refering to documentation.
So when I tried to implement theSecurityServiceProvider
I encountered this message.
Fatal error: Uncaught exception 'ReflectionException' with message 'Class Symfony\Component\Security\Http\Firewall\ContextListener does not exist' in
This got me pulling my hairs long enough to come and post here, on SO.
Answer
Solution:
This error is mainly generated because of, the dependency not being required.
In simple language, the code for this function "doesn't exist" in your code base, so you have to run the
composer
command torequire
the respective package, once composer downloads and installs the needed files you should be good to go.So in my case I had to run the following composer command.