Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function remove(array $paths, array $filters)
 {
     $this->resolver->remove($paths, $filters);
     foreach ($filters as $filter) {
         if (empty($paths)) {
             $this->removePathAndFilter(null, $filter);
         } else {
             foreach ($paths as $path) {
                 $this->removePathAndFilter($path, $filter);
             }
         }
     }
 }
 /**
  * {@inheritDoc}
  */
 public function remove($targetPath, $filter)
 {
     $removed = $this->resolver->remove($targetPath, $filter);
     // If the resolver did not remove the content, we can leave the cache.
     if ($removed) {
         $reverseKey = $this->generateCacheKey('reverse', $targetPath, $filter);
         if ($this->cache->contains($reverseKey)) {
             $path = $this->cache->fetch($reverseKey);
             // The indexKey is not utilizing the method so the value is not important.
             $indexKey = $this->generateIndexKey($this->generateCacheKey(null, $path, $filter));
             // Retrieve the index and remove the content from the cache.
             $index = $this->cache->fetch($indexKey);
             foreach ($index as $eachCacheKey) {
                 $this->cache->delete($eachCacheKey);
             }
             // Remove the auxiliary keys.
             $this->cache->delete($indexKey);
             $this->cache->delete($reverseKey);
         }
     }
     return $removed;
 }
 public function remove(array $paths, array $filters)
 {
     $this->resolver->remove(array_map([$this, 'rewritePath'], $paths), $filters);
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function remove(array $paths, array $filters)
 {
     return $this->resolver->remove($paths, $filters);
 }
Exemplo n.º 5
0
 public function removeAliases($originalPath)
 {
     $this->aliasResolver->remove(array($originalPath), array());
 }