T
T
thatside2015-06-12 23:42:58
symfony
thatside, 2015-06-12 23:42:58

Where does the ClassNotFound error come from in Symfony2 if the class itself is not used anywhere?

There is a configured Apache with two (actually more, but it doesn't matter) virtual hosts. On each host projects on the Symphony.
They both worked under Vagrant for a while, but now I'm running them locally for the sake of increased speed.
The problem is that when I go to the first one, I get an error:

ClassNotFoundException in classes.php line 1869:
Attempted to load class "LastLoginListener" from namespace "FOS\UserBundle\EventListener".
Did you forget a "use" statement for another namespace?

At the same time, in this project, my FOSUser is not used at all and is not connected, but in the second one it is used.
Tried to disable hosts and delete entries in hosts - it doesn't work. When clearing the cache - the same thing, but in the console.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
thatside, 2015-06-13
@thatside

The issue is resolved: by my own stupidity, I registered the cache folder for both projects in the same place. The second project created its cache later, apparently, that's why the first one could not decide.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question