8000 [RFC]: Replace Controllers with Handlers · Issue #27 · dotkernel/light · GitHub
[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC]: Replace Controllers with Handlers #27

Closed
arhimede opened this issue Feb 4, 2025 · 3 comments
Closed

[RFC]: Replace Controllers with Handlers #27

arhimede opened this issue Feb 4, 2025 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@arhimede
Copy link
Member
arhimede commented Feb 4, 2025

RFC

Q A
Proposed Version(s) 1.2.0
BC Break? Yes

Goal

proof of concept
use Handlers instead of Controllers
to use better the middleware pipes
See this comment of @Xerkus dotkernel/api#313 (comment)

@arhimede
Copy link
Member Author

Which is the best approache ?

A. method in filename:
Page/Handler/GetAboutUsHandler.php
Page/Handler/PostAboutUsHandler.php
B. all methods in one handler in filename:
Page/Handler/AboutUsHandler.php

@arhimede
Copy link
Member Author

@MarioRadu
Keep the PAGE module then
without switch

@alexmerlin
Copy link
Member

Implemented in #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

3 participants
0