Add method constants to php Server class #206
antonkomarev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It may be useful when writing tests. To not hardcode method names and use constants.
Current
Proposal
Generator may look like this:
Then we will have constants for methods:
Future usage:
Extra
Or go further and make method to Server class which will build a full path:
Usage:
Beta Was this translation helpful? Give feedback.
All reactions