remove() public method

Removes an object from this repository.
public remove ( object $object ) : void
$object object The object to remove
return void
 /**
  * Removes an account
  *
  * @param object $object The account to remove
  * @return void
  * @throws IllegalObjectTypeException
  */
 public function remove($object)
 {
     parent::remove($object);
     /** @var Account $object */
     $tag = 'TYPO3-Flow-Security-Account-' . md5($object->getAccountIdentifier());
     $this->sessionManager->destroySessionsByTag($tag, sprintf('The account %s (%s) was deleted', $object->getAccountIdentifier(), $object->getAuthenticationProviderName()));
 }
 /**
  * Removes a PersistentResource object from this repository
  *
  * @param object $object
  * @return void
  */
 public function remove($object)
 {
     // Intercept a second call for the same PersistentResource object because it might cause an endless loop caused by
     // the ResourceManager's deleteResource() method which also calls this remove() function:
     if (!$this->removedResources->contains($object)) {
         $this->removedResources->attach($object);
         parent::remove($object);
     }
 }
 /**
  * Removes an object to the persistence.
  *
  * This repository keeps track of added and removed nodes (additionally to the
  * other Unit of Work) in order to find in-memory nodes.
  *
  * @param object $object The object to remove
  * @return void
  * @api
  */
 public function remove($object)
 {
     if ($object instanceof NodeInterface) {
         $object = $object->getNodeData();
     }
     if ($this->addedNodes->contains($object)) {
         $this->addedNodes->detach($object);
     }
     if (!$this->removedNodes->contains($object)) {
         $this->removedNodes->attach($object);
     }
     parent::remove($object);
 }
 /**
  * Remove the asset even if it is still in use. Use with care, it is probably
  * better to first make sure the asset is not used anymore and then use
  * the remove() method for removal.
  *
  * @param AssetInterface $object
  * @return void
  */
 public function removeWithoutUsageChecks($object)
 {
     parent::remove($object);
     $this->assetService->emitAssetRemoved($object);
 }