You've already forked redmine-bundle
scope api and method to closure
This commit is contained in:
@@ -32,7 +32,7 @@ final class RedmineClient
|
|||||||
{
|
{
|
||||||
$cacheKey = sprintf('%s_%s_%s', $api, $method, sha1(serialize($arguments)));
|
$cacheKey = sprintf('%s_%s_%s', $api, $method, sha1(serialize($arguments)));
|
||||||
|
|
||||||
return $this->cache->get($cacheKey, function (ItemInterface $item): string {
|
return $this->cache->get($cacheKey, function (ItemInterface $item) use ($api, $method): array {
|
||||||
$item->expiresAfter(3600);
|
$item->expiresAfter(3600);
|
||||||
$item->tag([$api, $method]);
|
$item->tag([$api, $method]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user