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

Move to more traditional Client implementation. #140

Open
nicekiwi opened this issue Apr 28, 2024 · 0 comments
Open

Move to more traditional Client implementation. #140

nicekiwi opened this issue Apr 28, 2024 · 0 comments

Comments

@nicekiwi
Copy link
Collaborator

The usage of the old Steam alias and SteamApi facade is a bit weird and confusing to use.

Better to explicitly init the client you want to use, e.g.

use Syntax\SteamApi\Steam\App;

$client = new App();

$appList = $client->getAppList();

Or perhaps create a new static class to combine them, e.g.

use  use Syntax\SteamApi\Steam;

$appList = Steam::app()->getAppList();

On the surface, this is how the current usage appears to work, but there is some Laravel trickery going on the make it work like that, rather than being a simple class with static methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant