-
Notifications
You must be signed in to change notification settings - Fork 100
Add a method to get the task endpoint #729
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
Comments
Why |
Because all of the calls are quite verbose and come from the client object. It would be clearer for me to know which API endpoint I'm calling. I don't think anything is missing, so mostly DX. I'm refactoring all my code that to use $client->index() instead of $client->getIndex(), which had caused me all sorts of chicken-and-egg grief. I'm also monitoring tasks much closer, so with access to the tasks object there would be less code completion than with the client object. |
Yeah, i agree that there are way too much methods on a single client :) but given I remember sometime ago that I suggested a similar way to split things, but still somebody must have some time to come up with a PR. |
well, yes, for an expert it's clear. For a newcomer to the library, it's less clear. A HUGE thing that would help is if a Task object were returned instead of simply |
#703 :) |
There is a method in the client index that returns the index endpoint.
I would like a similar method for the task endpoint, although I'd prefer that the method name be more explicit. But I'd be okay with just having access to it.
In short, I'd like a way to access
Tasks
in the HandlesTasks trait.The text was updated successfully, but these errors were encountered: