1 | <?php |
||
11 | class GaufretteAdapter extends AbstractAdapter |
||
12 | { |
||
13 | use NotSupportingVisibilityTrait; |
||
14 | use StreamedReadingTrait; |
||
15 | |||
16 | /** |
||
17 | * @var Adapter |
||
18 | */ |
||
19 | private $adapter; |
||
20 | |||
21 | /** |
||
22 | * @param Adapter $adapter |
||
23 | */ |
||
24 | 75 | public function __construct(Adapter $adapter) |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 6 | public function write($path, $contents, Config $config) |
|
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 6 | public function writeStream($path, $resource, Config $config) |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 3 | public function update($path, $contents, Config $config) |
|
65 | |||
66 | /** |
||
67 | * {@inheritdoc} |
||
68 | */ |
||
69 | 3 | public function updateStream($path, $resource, Config $config) |
|
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | 3 | public function rename($path, $newpath) |
|
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | 3 | public function copy($path, $newpath) |
|
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | 3 | public function delete($path) |
|
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | 6 | public function deleteDir($dirname) |
|
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | 3 | public function createDir($dirname, Config $config) |
|
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | 3 | public function has($path) |
|
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | 6 | public function read($path) |
|
133 | |||
134 | /** |
||
135 | * {@inheritdoc} |
||
136 | */ |
||
137 | 3 | public function listContents($directory = '', $recursive = false) |
|
141 | |||
142 | /** |
||
143 | * {@inheritdoc} |
||
144 | */ |
||
145 | 6 | public function getMetadata($path) |
|
153 | |||
154 | /** |
||
155 | * {@inheritdoc} |
||
156 | */ |
||
157 | 6 | public function getSize($path) |
|
165 | |||
166 | /** |
||
167 | * {@inheritdoc} |
||
168 | */ |
||
169 | 6 | public function getMimetype($path) |
|
177 | |||
178 | /** |
||
179 | * {@inheritdoc} |
||
180 | */ |
||
181 | 3 | public function getTimestamp($path) |
|
187 | } |
||
188 |