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.

456

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 thecomposer 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.

composer require symfony/security

People are also looking for solutions to the problem: php - How to get individual product related images in magento

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.