| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function __invoke(WarmImageCache $message): void |
||
| 28 | { |
||
| 29 | $path = $message->getPath(); |
||
| 30 | $filters = $message->getFilters() ?: array_keys($this->filterManager->getFilterConfiguration()->all()); |
||
| 31 | foreach ($filters as $filter) |
||
| 32 | { |
||
| 33 | if ($message->isForce()) { |
||
| 34 | $this->filterService->bustCache($path, $filter); |
||
| 35 | } |
||
| 36 | |||
| 37 | $results[$filter] = $this->filterService->getUrlOfFilteredImage($path, $filter); |
||
| 38 | } |
||
| 40 | } |