Refactored Exception Handling, mostly tested authorization request handler
* Internal error conditions now raise IndieAuthException * Bubbled unknown exceptions converted to generic IndieAuthException * Exceptions passed to overridable handler, turned into response * Wrote many more tests, fixed a variety of problems
This commit is contained in:
@@ -53,7 +53,7 @@ class FilesystemJsonStorage implements TokenStorageInterface {
|
||||
public function put(string $key, array $data): bool {
|
||||
// Ensure that the containing folder exists.
|
||||
@mkdir($this->path, 0777, true);
|
||||
|
||||
|
||||
return file_put_contents($this->getPath($key), json_encode($data)) !== false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user