Skip to content

Commit

Permalink
add missing use statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Oct 29, 2023
1 parent bd8bab0 commit ef013a9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,18 @@ Take a look at the [documentation](documentation/README.md) for a more in-depth
### Creating an archive of a directory

```php
$adapter = Adapter::mount(Path::of('some/directory/'));
use Innmind\Filesystem\{
Adapter\Filesystem,
Name,
};
use Innmind\TimeContinuum\Earth;
use Innmind\Url\Path;
use Innmind\Encoding\{
Gzip,
Tar,
};

$adapter = Filesystem::mount(Path::of('some/directory/'));
$tar = $adapter
->get(Name::of('data'))
->map(Tar::encode(new Earth\Clock))
Expand Down

0 comments on commit ef013a9

Please sign in to comment.