The CacheManager::getBrowserPath returns a path or url for a previously cached asset. However, the parameter for the URL generator is not within scope of the caching mechanism, possibly returning unexpected results.
Preconditions
LiipImagineBundle 2.x
Steps to reproduce
Create a template that exposes an asset through multiple variations of the UrlGeneratorInterface types (e.g. absolute url, absolute path)
The
CacheManager::getBrowserPath
returns a path or url for a previously cached asset. However, the parameter for the URL generator is not within scope of the caching mechanism, possibly returning unexpected results.Preconditions
LiipImagineBundle 2.x
Steps to reproduce
Create a template that exposes an asset through multiple variations of the
UrlGeneratorInterface
types (e.g. absolute url, absolute path)Expected result
I expect the template to render as follows:
Actual result
This is happening because CacheManager::getBrowserPath returns ResolverInterface::resolve(), which does not have the referenceType as a parameter.