lib/EventDispatchingAgent.php
public function remove($object)
    {
        $this->dispatch(Events::PRE_REMOVE, $object);
        $this->agent->remove($object);
        $this->dispatch(Events::POST_REMOVE, $object);
    }
public function remove($object)
    {
        $this->dispatch(Events::PRE_REMOVE, $object);
        $this->agent->remove($object);
        $this->dispatch(Events::POST_REMOVE, $object);
    }
{@inheritdoc}