deleteUser() abstract public method

Delete user with the given ID.
abstract public deleteUser ( mixed $userId )
$userId mixed
Ejemplo n.º 1
0
 /**
  * Delete user with the given ID.
  *
  * @param mixed $userId
  */
 public function deleteUser($userId)
 {
     try {
         return $this->innerGateway->deleteUser($userId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Ejemplo n.º 2
0
 /**
  * Delete user with the given ID.
  *
  * @param mixed $userId
  */
 public function delete($userId)
 {
     $this->userGateway->deleteUser($userId);
 }