Skip to content

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

Merged
zigzagdev merged 2 commits into
feat/user-logoutfrom
feat/user-logout_application-layer
Jul 15, 2026
Merged

feat: implement Application layer for User Logout / ユーザーログアウトのApplication層実装#537
zigzagdev merged 2 commits into
feat/user-logoutfrom
feat/user-logout_application-layer

Conversation

@zigzagdev

Copy link
Copy Markdown
Owner

Motivation / 目的

Implement LogoutUseCase to handle token revocation in the Application layer.

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

What I have done / 実施内容

  • LogoutUseCase: handle(string $plainTextToken): void
    • TokenServiceInterface::revokeCurrentToken($plainTextToken) を呼び出す
    • 失敗時は例外をそのまま伝播する
    • Login と同様に Command/Input オブジェクトは作成せず、引数は string $plainTextToken のみ

Test Results / テスト結果

  • LogoutUseCaseTest::test_handle_revokes_current_token
  • LogoutUseCaseTest::test_handle_propagates_exception_when_revocation_fails

Closes #410

@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.92%. Comparing base (e9b1016) to head (4ccb559).

Additional details and impacted files

Impacted file tree graph

@@                  Coverage Diff                   @@
##             feat/user-logout     #537      +/-   ##
======================================================
+ Coverage               61.83%   61.92%   +0.09%     
- Complexity               1589     1594       +5     
======================================================
  Files                     132      134       +2     
  Lines                    8169     8190      +21     
======================================================
+ Hits                     5051     5072      +21     
  Misses                   3118     3118              
Files with missing lines Coverage Δ
...res/CommandUseCases/UseCase/User/LogoutUseCase.php 100.00% <100.00%> (ø)
...atures/Tests/CommandUseCases/LogoutUseCaseTest.php 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zigzagdev zigzagdev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@zigzagdev
zigzagdev merged commit d2b599f into feat/user-logout Jul 15, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant