@@ -25,6 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Constructor for LocalStorage adapter |
28 | + * @param \Symfony\Component\Filesystem\Filesystem $service |
|
28 | 29 | */ |
29 | 30 | public function __construct($service, array $parameters, $localTmpDir) |
30 | 31 | { |
@@ -123,6 +124,10 @@ discard block |
||
123 | 124 | $this->service->mkdir($this->absolutePath.'/'.$dir); |
124 | 125 | } |
125 | 126 | |
127 | + /** |
|
128 | + * @param string $originFile |
|
129 | + * @param string $targetFile |
|
130 | + */ |
|
126 | 131 | public function copy($originFile, $targetFile) |
127 | 132 | { |
128 | 133 | $originFile = $this->pathOrUrlToPath($originFile); |
@@ -220,7 +225,7 @@ discard block |
||
220 | 225 | |
221 | 226 | /** |
222 | 227 | * @param string $input |
223 | - * @return array The path to the file inside the file system. Does not contain a preceding |
|
228 | + * @return string The path to the file inside the file system. Does not contain a preceding |
|
224 | 229 | * slash. |
225 | 230 | */ |
226 | 231 | private function pathOrUrlToPath($input) |
@@ -16,6 +16,10 @@ discard block |
||
16 | 16 | private $config; |
17 | 17 | private $tmpDir; |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $defaultFileSystem |
|
21 | + * @param string $tmpDir |
|
22 | + */ |
|
19 | 23 | public function __construct($defaultFileSystem, $config, $tmpDir = null) |
20 | 24 | { |
21 | 25 | $this->defaultFileSystem = $defaultFileSystem; |
@@ -24,6 +28,7 @@ discard block |
||
24 | 28 | } |
25 | 29 | |
26 | 30 | /** |
31 | + * @param string $adapterName |
|
27 | 32 | * @return \Partnermarketing\FileSystemBundle\Adapter\AdapterInterface |
28 | 33 | */ |
29 | 34 | public function build($adapterName = null) |