1 | <?php |
||
16 | class FormatResolver extends WebPathResolver |
||
17 | { |
||
18 | /** |
||
19 | * @var FilterManager |
||
20 | */ |
||
21 | protected $filterManager; |
||
22 | |||
23 | /** |
||
24 | * @param Filesystem $filesystem |
||
25 | * @param RequestContext $requestContext |
||
26 | * @param string $webRootDir |
||
27 | * @param string $cachePrefix |
||
28 | * @param FilterManager $filterManager |
||
29 | */ |
||
30 | public function __construct( |
||
41 | |||
42 | /** |
||
43 | * {@inheritDoc} |
||
44 | */ |
||
45 | protected function getFilePath($path, $filter) |
||
49 | |||
50 | /** |
||
51 | * {@inheritDoc} |
||
52 | */ |
||
53 | protected function getFileUrl($path, $filter) |
||
57 | |||
58 | /** |
||
59 | * Replaces original image file extension to conversion format extension |
||
60 | * |
||
61 | * @param string $path |
||
62 | * @param string $filter |
||
63 | * |
||
64 | * @return mixed |
||
65 | */ |
||
66 | protected function replaceImageFileExtension($path, $filter) |
||
75 | |||
76 | /** |
||
77 | * Returns image conversion format |
||
78 | * |
||
79 | * @param $filterName |
||
80 | * |
||
81 | * @return mixed |
||
82 | */ |
||
83 | protected function getImageFormat($filterName) |
||
90 | } |
||
91 |