diff --git a/src/Cache.php b/src/Cache.php index d047496..f1e3b64 100644 --- a/src/Cache.php +++ b/src/Cache.php @@ -36,10 +36,10 @@ public function __construct(Config $config, ClientInterface $client = null) $this->urlConverter = new UrlConverter($config->getPrivateKey()); } - public static function create($privateKey) + public static function create($privateKey, array $config = []) { - $config = Config::create(['private_key' => $privateKey]); - return new self($config); + $config = array_merge($config, ['private_key' => $privateKey]); + return new self(Config::create($config)); } public function update($url, $contentType = UrlConverter::CONTENT_TYPE_HTML)