Ejemplo n.º 1
0
 /**
  * @param object $object The object instance to remove.
  */
 public function remove($object)
 {
     if ($this->isScheduledForRemove($object)) {
         throw new \InvalidArgumentException('Object is already scheduled for remove.');
     }
     $this->eventDispatcher->dispatchPreRemove($object);
     $this->objectsToRemove[spl_object_hash($object)] = $object;
 }