Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Mar 23, 2020
1 parent 0ee483d commit bb15ff7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ composer require innmind/rest-client
## Usage

```php
use Innmind\OperatingSystem\Factory;
use Innmind\Url\Path;
use Innmind\UrlResolver\UrlResolver;
use function Innmind\Rest\Client\bootstrap;

$os = Factory::build();
$client = bootstrap(
/* instance of Innmind\HttpTransport\Transport */,
/* instance of Innmind\UrlResolver\ResolverInterface */,
/* instance of Innmind\Filesystem\Adapter */
$os->remote()->http(),
new UrlResolver,
$os->filesystem()->mount(Path::of('/somewhere/to/cache/data')),
);

$client
Expand Down

0 comments on commit bb15ff7

Please sign in to comment.