protected function warmUp(string $key, string $type)
    {
        $currentlyWarmingUp = isset($this->warmupStack[$key]);
        $alreadyWarmedUp = isset($this->resources[$key]);
        $shouldWarmUp = \in_array($type, $this->warmupTypes, true);
        if ($currentlyWarmingUp || $alreadyWarmedUp || !$shouldWarmUp) {
            return;
        }

        $item = $this->cacheItemPool->getItem($key);
        if ($item->isHit()) {
            $this->warmupStack[$key] = true;
            /** @var ResourceInterface $resource */
            $resource = $this->client->parseJson($item->get());
            $this->resources[$key] = $resource;
            unset($this->warmupStack[$key]);
        }
    }
protected function warmUp(string $key, string $type)
    {
        $currentlyWarmingUp = isset($this->warmupStack[$key]);
        $alreadyWarmedUp = isset($this->resources[$key]);
        $shouldWarmUp = \in_array($type, $this->warmupTypes, true);
        if ($currentlyWarmingUp || $alreadyWarmedUp || !$shouldWarmUp) {
            return;
        }

        $item = $this->cacheItemPool->getItem($key);
        if ($item->isHit()) {
            $this->warmupStack[$key] = true;
            
            $resource = $this->client->parseJson($item->get());
            $this->resources[$key] = $resource;
            unset($this->warmupStack[$key]);
        }
    }
protected function warmUp ( string $ key , string $ type ) { $ currentlyWarmingUp = isset ( $ this -> warmupStack [ $ key ] ) ; $ alreadyWarmedUp = isset ( $ this -> resources [ $ key ] ) ; $ shouldWarmUp = \ in_array ( $ type , $ this -> warmupTypes , true ) ; if ( $ currentlyWarmingUp || $ alreadyWarmedUp || ! $ shouldWarmUp ) { return ; } $ item = $ this -> cacheItemPool -> getItem ( $ key ) ; if ( $ item -> isHit ( ) ) { $ this -> warmupStack [ $ key ] = true ; /** @var ResourceInterface $resource */ $ resource = $ this -> client -> parseJson ( $ item -> get ( ) ) ; $ this -> resources [ $ key ] = $ resource ; unset ( $ this -> warmupStack [ $ key ] ) ; } }
{@inheritdoc}
{