Skip to content

Commit

Permalink
add read methods
Browse files Browse the repository at this point in the history
  • Loading branch information
iampersistent committed Feb 13, 2022
1 parent 8f15049 commit b87504c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ public function __construct(
private string $url,
) { }

public function read(string $location): string
{
return $this->filesystem->read($location);
}

public function readStream(string $location)
{
return $this->filesystem->readStream($location);
}

public function write(string $location, string $contents, array $config = []): string
{
$this->filesystem->write($location, $contents, $config);
Expand Down

0 comments on commit b87504c

Please sign in to comment.