-
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
Update WebPathResolverFactory.php #467
Conversation
one test is failing |
Yes, i just wanted tout open the debate about it |
ah sorry, now i see what you are doing. but i am not familiar enough with this, hope @makasim can give us some input here. |
@makasim Thanks for the explaination, but i'm still wondering why i get an error, i think there must be a bug by using WebPathResolver as it directly call the |
/media/cache/resolve/{filter}/{path} - the url of the action which generates the cache. called only when you do not have the cache. |
@makasim CacheManager told me the inverse: public function getBrowserPath($path, $filter, array $runtimeConfig = array())
{
...
return $this->isStored($path, $filter) ?
$this->resolve($path, $filter) :
$this->generateUrl($path, $filter)
;
} and routing too: <route id="liip_imagine_filter" path="/media/cache/{filter}/{path}" methods="GET">
<default key="_controller">%liip_imagine.controller.filter_action%</default>
<requirement key="filter">[A-z0-9_\-]*</requirement>
<requirement key="path">.+</requirement>
</route> I think i understand what you wanted to do, but the implémentation seems wrong.
am i right? |
@@ -42,7 +42,7 @@ public function addConfiguration(ArrayNodeDefinition $builder) | |||
$builder | |||
->children() | |||
->scalarNode('web_root')->defaultValue('%kernel.root_dir%/../web')->cannotBeEmpty()->end() | |||
->scalarNode('cache_prefix')->defaultValue('media/cache/resolve')->cannotBeEmpty()->end() | |||
->scalarNode('cache_prefix')->defaultValue('media/cache')->cannotBeEmpty()->end() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not ok, as after this change we would again have problems with Safari
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, I see, igonre the comment
So you changed urls used to generate and the actual url of cached image?
Could you confirm? |
@makasim yes, thats it :) IMO it's prettiest to store in the |
@JJK801 yes that was my intention too but I think I messed it up. merging! thanks. |
Update WebPathResolverFactory.php
Hi,
I'm actually updating CmfMediaBundle, i get an error while running test:
Could not find configuration for a filter: resolve
It run well when i make this change.
Is something wrong in my configuration or is it a bug?