I am getting Class 'Splash\\SiteBundle\\Util\\Resize' not found
when running my app on prod. This does not happen on dev.
Here is the code from the error:
$resize = new \Splash\SiteBundle\Util\Resize($this->getAbsolutePath());
I have a file called Splash\SiteBundle\Util\Resize.php
with this namespace
namespace Splash\SiteBundle\Util;
Class Resize{ ... }
Any thoughts?
I love when its the little things. My util
folder was not capitalized. I changed this and it works now. I'm surprised my dev machine did not fail w this error.
So the quick fix is to add this include dirname(__FILE__) . "/../Util/Resize.php"
I am not sure why my production machine would need the include while my dev machine works fine without it. Using Symfony2 and the autoloader I have never needed to include
a file. Not sure whats goin on but this get me past it for now
One of the possible thing that could lead this to happen could ne not cleared cache
php app/console cache:clear -e prod
Another stupid thought could be that production has merge conflicts within that file and PHP doesn't see the class compiled.