Tested FilesystemJsonStorage

This commit is contained in:
Barnaby Walters
2021-06-06 17:21:33 +02:00
parent ddcaf4b64d
commit 825ec1c0e5
3 changed files with 59 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ class FilesystemJsonStorage implements TokenStorageInterface {
public function put(string $key, array $data): bool {
// Ensure that the containing folder exists.
mkdir($this->path, 0777, true);
@mkdir($this->path, 0777, true);
return file_put_contents($this->getPath($key), json_encode($data)) !== false;
}