1 | <?php |
||
25 | class SymfonyFilesystem implements Filesystem |
||
26 | { |
||
27 | /** |
||
28 | * The Symfony filesystem. |
||
29 | * |
||
30 | * @var Symfony |
||
31 | */ |
||
32 | private $filesystem; |
||
33 | |||
34 | /** |
||
35 | * The path. |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | private $path; |
||
40 | |||
41 | /** |
||
42 | * Constructor. |
||
43 | * |
||
44 | * @param string $aPath The path |
||
45 | * @param Symfony $aFilesystem The Symfony filesystem |
||
46 | */ |
||
47 | public function __construct($aPath, Symfony $aFilesystem) |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function delete(FileName $aName) |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function has(FileName $aName) |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function overwrite(FileName $aName, $aContent) |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function read(FileName $aName) |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function rename(FileName $anOldName, FileName $aNewName) |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function write(FileName $aName, $aContent) |
||
109 | } |
||
110 |