/** * {@inheritdoc} */ public function remove(User $aUser) { $this->execute('DELETE FROM user WHERE id = :id', ['id' => $aUser->id()->id()]); if ($this->eventBus instanceof UserEventBus) { $this->handle($aUser->events()); } }
/** * {@inheritdoc} */ public function remove(User $aUser) { unset($this->users[$aUser->id()->id()]); if ($this->eventBus instanceof UserEventBus) { $this->handle($aUser->events()); } }