Skip to content
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

location header not set in response when calling filter from controller #174

Closed
leberknecht opened this issue Apr 27, 2013 · 3 comments
Closed
Labels
Type: Documentation This item pertains to documentation of this project.

Comments

@leberknecht
Copy link

According to the readme, the following code should return the browser path for the generated thumb if called from a controller:

$imagemanagerResponse = $this->container->get('liip_imagine.controller')->filterAction(
[...]
);
$srcPath = $imagemanagerResponse->headers->get('location');

With Sf 2.2.2dev and liip/imagine-bundle:dev-master, the location field is not set in the headers.

@havvg
Copy link
Contributor

havvg commented Apr 29, 2013

Well, the README is wrong on this and will be updated.

@ghost
Copy link

ghost commented May 2, 2013

Very interesting by the answer as well. Thx to update the README or just explain the solution.

@havvg
Copy link
Contributor

havvg commented May 13, 2013

@michmichant check #175, it's about CacheManager::getBrowserPath.

@havvg havvg closed this as completed May 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Documentation This item pertains to documentation of this project.
Projects
None yet
Development

No branches or pull requests

2 participants