Skip to content

Move to more traditional Client implementation.  #140

@nicekiwi

Description

@nicekiwi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions