Skip to content

feat: implement Application layer for User Logout / ユーザーログアウトのApplication層実装 #410

Description

@zigzagdev

Parent Issue / 親Issue

#408

Motivation / 目的

Implement LogoutUseCase in the Application layer to revoke the current session token.

ログアウト処理を担う LogoutUseCase を Application 層に実装します。

What to do / 実施内容

  • LogoutUseCase.php: handle(string $plainTextToken): void
    • TokenServiceInterface::revokeCurrentToken($plainTextToken) を呼び出す
    • 失敗時は例外を伝播する

Note: Login と同様に Command/Input オブジェクトは作成しない。引数は string $plainTextToken のみ。

Tests / テスト

  • test_handle_revokes_current_token
  • test_handle_propagates_exception_when_revocation_fails

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions