| @@ 60-66 (lines=7) @@ | ||
| 57 | $filters = $message->getFilters() ?: array_keys($this->filterManager->getFilterConfiguration()->all()); |
|
| 58 | $path = $message->getPath(); |
|
| 59 | $results = []; |
|
| 60 | foreach ($filters as $filter) { |
|
| 61 | if ($message->isForce()) { |
|
| 62 | $this->filterService->bustCache($path, $filter); |
|
| 63 | } |
|
| 64 | ||
| 65 | $results[$filter] = $this->filterService->getUrlOfFilteredImage($path, $filter); |
|
| 66 | } |
|
| 67 | ||
| 68 | $this->producer->sendEvent(Topics::CACHE_RESOLVED, new CacheResolved($path, $results)); |
|
| 69 | ||
| @@ 39-45 (lines=7) @@ | ||
| 36 | $filters = $message->getFilters() ?: array_keys($this->filterManager->getFilterConfiguration()->all()); |
|
| 37 | $path = $message->getPath(); |
|
| 38 | ||
| 39 | foreach ($filters as $filter) { |
|
| 40 | if ($message->isForce()) { |
|
| 41 | $this->filterService->bustCache($path, $filter); |
|
| 42 | } |
|
| 43 | ||
| 44 | $this->filterService->getUrlOfFilteredImage($path, $filter); |
|
| 45 | } |
|
| 46 | } |
|
| 47 | } |
|
| 48 | ||