1 | <?php |
||
27 | class ResolvableFilesystem implements FilesystemInterface |
||
28 | { |
||
29 | /** @var FilesystemInterface */ |
||
30 | private $decorated; |
||
31 | |||
32 | /** @var ResolverInterface */ |
||
33 | private $resolver; |
||
34 | |||
35 | public function __construct(FilesystemInterface $decorated, ResolverInterface $resolver) |
||
40 | |||
41 | /** |
||
42 | * @param string $key Object path. |
||
43 | * |
||
44 | * @throws UnresolvableObjectException When not able to resolve the object path. Any exception thrown by underlying |
||
45 | * resolver will be converted to this exception. |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | public function resolve($key) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function has($key) |
||
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | public function rename($sourceKey, $targetKey) |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function get($key, $create = false) |
||
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | public function write($key, $content, $overwrite = false) |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function read($key) |
||
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | public function delete($key) |
||
105 | |||
106 | /** |
||
107 | * {@inheritdoc} |
||
108 | */ |
||
109 | public function keys() |
||
113 | |||
114 | /** |
||
115 | * {@inheritdoc} |
||
116 | */ |
||
117 | public function listKeys($prefix = '') |
||
121 | |||
122 | /** |
||
123 | * {@inheritdoc} |
||
124 | */ |
||
125 | public function mtime($key) |
||
129 | |||
130 | /** |
||
131 | * {@inheritdoc} |
||
132 | */ |
||
133 | public function checksum($key) |
||
137 | |||
138 | /** |
||
139 | * {@inheritdoc} |
||
140 | */ |
||
141 | public function size($key) |
||
145 | |||
146 | /** |
||
147 | * {@inheritdoc} |
||
148 | */ |
||
149 | public function createStream($key) |
||
153 | |||
154 | /** |
||
155 | * {@inheritdoc} |
||
156 | */ |
||
157 | public function createFile($key) |
||
161 | |||
162 | /** |
||
163 | * {@inheritdoc} |
||
164 | */ |
||
165 | public function mimeType($key) |
||
169 | |||
170 | /** |
||
171 | * {@inheritdoc} |
||
172 | */ |
||
173 | public function isDirectory($key) |
||
177 | |||
178 | /** |
||
179 | * {@inheritdoc} |
||
180 | */ |
||
181 | public function __call($name, $arguments) |
||
185 | } |
||
186 |