src/Leevel/Database/Ddd/UnitOfWork.php
public function on(IEntity $entity, Closure $callbacks): void
    {
        $this->onCallbacks[spl_object_id($entity)][] = $callbacks;
    }
public function on(IEntity $entity, Closure $callbacks): void
    {
        $this->onCallbacks[spl_object_id($entity)][] = $callbacks;
    }
响应回调.

@param \Leevel\Database\Ddd\IEntity $entity
@param \Closure                     $callbacks