public function clear($cacheContent = false): bool
    {
        $keys = [];
        foreach ($this->fetchResources($cacheContent) as $resource) {
            /** @var SystemPropertiesInterface $sys */
            $sys = $resource->getSystemProperties();

            $options = $sys instanceof LocalizedResourceSystemProperties
                ? ['locale' => $sys->getLocale()]
                : [];
            $keys[] = $this->resourcePool->generateKey($sys->getType(), $sys->getId(), $options);
        }

        return $this->cacheItemPool->deleteItems($keys);
    }
public function clear($cacheContent = false): bool
    {
        $keys = [];
        foreach ($this->fetchResources($cacheContent) as $resource) {
            
            $sys = $resource->getSystemProperties();

            $options = $sys instanceof LocalizedResourceSystemProperties
                ? ['locale' => $sys->getLocale()]
                : [];
            $keys[] = $this->resourcePool->generateKey($sys->getType(), $sys->getId(), $options);
        }

        return $this->cacheItemPool->deleteItems($keys);
    }
public function clear ( $ cacheContent = false ) : bool { $ keys = [ ] ; foreach ( $ this -> fetchResources ( $ cacheContent ) as $ resource ) { /** @var SystemPropertiesInterface $sys */ $ sys = $ resource -> getSystemProperties ( ) ; $ options = $ sys instanceof LocalizedResourceSystemProperties ? [ 'locale' => $ sys -> getLocale ( ) ] : [ ] ; $ keys [ ] = $ this -> resourcePool -> generateKey ( $ sys -> getType ( ) , $ sys -> getId ( ) , $ options ) ; } return $ this -> cacheItemPool -> deleteItems ( $ keys ) ; }
@param bool $cacheContent

@return bool
@param bool $cacheContent