@@ -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) |
@@ -17,6 +17,10 @@ discard block |
||
| 17 | 17 | private $config; |
| 18 | 18 | private $tmpDir; |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param string $defaultFileSystem |
|
| 22 | + * @param string $tmpDir |
|
| 23 | + */ |
|
| 20 | 24 | public function __construct($defaultFileSystem, $config, $tmpDir) |
| 21 | 25 | { |
| 22 | 26 | $this->defaultFileSystem = $defaultFileSystem; |
@@ -25,6 +29,7 @@ discard block |
||
| 25 | 29 | } |
| 26 | 30 | |
| 27 | 31 | /** |
| 32 | + * @param string $adapterName |
|
| 28 | 33 | * @return \Partnermarketing\FileSystemBundle\Adapter\AdapterInterface |
| 29 | 34 | */ |
| 30 | 35 | public function build($adapterName = null) |