|
|
|
@ -43,6 +43,7 @@ class JsonFile
|
|
|
|
|
*
|
|
|
|
|
* @param string $path path to a lockfile
|
|
|
|
|
* @param RemoteFilesystem $rfs required for loading http/https json files
|
|
|
|
|
* @param IOInterface $io
|
|
|
|
|
* @throws \InvalidArgumentException
|
|
|
|
|
*/
|
|
|
|
|
public function __construct($path, RemoteFilesystem $rfs = null, IOInterface $io = null)
|
|
|
|
@ -105,7 +106,7 @@ class JsonFile
|
|
|
|
|
*
|
|
|
|
|
* @param array $hash writes hash into json file
|
|
|
|
|
* @param int $options json_encode options (defaults to JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)
|
|
|
|
|
* @throws \UnexpectedValueException
|
|
|
|
|
* @throws \UnexpectedValueException|\Exception
|
|
|
|
|
*/
|
|
|
|
|
public function write(array $hash, $options = 448)
|
|
|
|
|
{
|
|
|
|
|