rsodhia's avatar

Engine still looking for renamed file

I noticed that I had named a file incorrect, so renamed it (SesssionType to SessionType). The class therein was already named SessionType, so this brought the filename and class name in line.

However, when I make a request to the path, I get the following error:

ErrorException in ClassLoader.php line 444:

include(/var/www/opweekends.api/vendor/composer/../../app/SesssionType.php): failed to open stream: No such file or directory

I checked, and there are no references to SesssionTYpe, so I have no idea why it's looking for the file. I'd love some help figuring out why this is going on and how I can resolve it/avoid it in the future.

0 likes
1 reply
rsodhia's avatar

Someone answered me on Gitter:

composer dump-autoload

I'd love advice on if this is just part of how it works or if there's a good way to avoid running into this problem.

Please or to participate in this conversation.