Skip to content

Commit 975d4f1

Browse files
authored
feat(client): Adds wither for cache version storage (#70)
1 parent abc3162 commit 975d4f1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/StoryblokClient.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ public function withHttpClient(HttpClientInterface $client): self
5656
return $this;
5757
}
5858

59+
public function withCacheVersionStorage(CacheVersionStorageInterface $storage): self
60+
{
61+
$this->storage = $storage;
62+
63+
return $this;
64+
}
65+
5966
public function request(string $method, string $url, array $options = []): ResponseInterface
6067
{
6168
Assert::notStartsWith($url, 'http', '$url should be relative: Got: %s');

0 commit comments

Comments
 (0)