public function commit() { $return = $this->repository->commit(); if ($this->signalDispatcher instanceof TransactionHandler) { $this->signalDispatcher->commit(); } return $return; }