Пример #1
0
 /**
  * {@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());
     }
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function remove(User $aUser)
 {
     unset($this->users[$aUser->id()->id()]);
     if ($this->eventBus instanceof UserEventBus) {
         $this->handle($aUser->events());
     }
 }