-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with path on Windows? #527
Comments
@yellow1912, the ltrim is simply trimming the $path so you don't end up with root-path//absolute-path (notice the //). From memory, the root path would normally be the absolute path to the cache directory. (eg D:/Application/web/media/cache/) Therefore the final path would be D:/Application/web/media/cache/filename.jpg |
Using factory instead
Now, your actual service is: But if an user don't care about
|
@yellow1912 Did vinhtrinh's solve your issue? If not, please open a new issue if this is still an issue for you. Thanks! :) |
In Liip\ImagineBundle\Binary\Loader\FileSystemLoader
we have:
$absolutePath = $this->rootPath.'/'.ltrim($path, '/');
On Windows, we will get something like:
/D:/absolute/path
Is this intentional or should it be something like:
$absolutePath = ltrim($path, '/');
The text was updated successfully, but these errors were encountered: