1 | <?php |
||
9 | class WebPathResolver implements ResolverInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var Filesystem |
||
13 | */ |
||
14 | protected $filesystem; |
||
15 | |||
16 | /** |
||
17 | * @var RequestContext |
||
18 | */ |
||
19 | protected $requestContext; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $webRoot; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $cachePrefix; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $cacheRoot; |
||
35 | |||
36 | /** |
||
37 | * @param Filesystem $filesystem |
||
38 | * @param RequestContext $requestContext |
||
39 | * @param string $webRootDir |
||
40 | * @param string $cachePrefix |
||
41 | */ |
||
42 | public function __construct( |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function resolve($path, $filter) |
||
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | */ |
||
70 | public function isStored($path, $filter) |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function store(BinaryInterface $binary, $path, $filter) |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function remove(array $paths, array $filters) |
||
112 | |||
113 | /** |
||
114 | * {@inheritdoc} |
||
115 | */ |
||
116 | protected function getFilePath($path, $filter) |
||
120 | |||
121 | /** |
||
122 | * {@inheritdoc} |
||
123 | */ |
||
124 | protected function getFileUrl($path, $filter) |
||
131 | |||
132 | /** |
||
133 | * @return string |
||
134 | */ |
||
135 | protected function getBaseUrl() |
||
159 | } |
||
160 |