MatthiasMullie\Scrapbook\Psr6\Repository::remove PHP Method

remove() public method

In that case, this method can be called to remove those values.
public remove ( string $unique )
$unique string
    public function remove($unique)
    {
        unset($this->unresolved[$unique], $this->resolved[$unique]);
    }

Usage Example

Example #1
0
 /**
  * When this item is being killed, we should no longer keep its value around
  * in the repository. Free up some memory!
  */
 public function __destruct()
 {
     $this->repository->remove($this->hash);
 }