|
@@ 179-181 (lines=3) @@
|
| 176 |
|
if ($this->mkdir(dirname($path)) === false) { |
| 177 |
|
throw new AssetFileStorageException('Failed to create a directory for provider-latest storage'); |
| 178 |
|
} |
| 179 |
|
if (file_put_contents($path, $json) === false) { |
| 180 |
|
throw new AssetFileStorageException('Failed to write package to provider-latest storage for package "' . $name . '"'); |
| 181 |
|
} |
| 182 |
|
if (file_put_contents($latestPath, $json) === false) { |
| 183 |
|
throw new AssetFileStorageException('Failed to write file "latest.json" to provider-latest storage for package "' . $name . '"'); |
| 184 |
|
} |
|
@@ 182-184 (lines=3) @@
|
| 179 |
|
if (file_put_contents($path, $json) === false) { |
| 180 |
|
throw new AssetFileStorageException('Failed to write package to provider-latest storage for package "' . $name . '"'); |
| 181 |
|
} |
| 182 |
|
if (file_put_contents($latestPath, $json) === false) { |
| 183 |
|
throw new AssetFileStorageException('Failed to write file "latest.json" to provider-latest storage for package "' . $name . '"'); |
| 184 |
|
} |
| 185 |
|
$this->writePackagesJson($hash); |
| 186 |
|
} finally { |
| 187 |
|
$this->releaseLock(); |