You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
protected function getUploadRootDir()
{
// the absolute directory path where uploaded
// documents should be saved
return __DIR__.'/../../../../web/'.$this->getUploadDir();
}
I don't have a fix myself yet. Maybe someone else knows the best way to remove DIR from this class?
The text was updated successfully, but these errors were encountered:
We've added a note. Really, we may just need to bite the bullet and rewrite this whole entry to use listeners, which are the better approach. See #2346
One of the SensioLabs Insight checks for the use of absolute path constants like DIR and FILE.
In the Doctrine File Upload example DIR is being used:
https://github.com/symfony/symfony-docs/blob/2.4/cookbook/doctrine/file_uploads.rst
I don't have a fix myself yet. Maybe someone else knows the best way to remove DIR from this class?
The text was updated successfully, but these errors were encountered: