invisnik / laravel-steam-auth

Laravel Steam Auth
MIT License
172 stars 67 forks source link

Missing argument in SteamAuth::__construct() #38

Closed KAMAELUA closed 7 years ago

KAMAELUA commented 7 years ago

Hello, I think that you should fix this small issue.

Type error: Argument 1 passed to Invisnik\LaravelSteamAuth\SteamAuth::__construct() must be an instance of Illuminate\Http\Request

You have created constructor for SteamAuth:

public function __construct(Request $request)
{
    ...
}

but when you register() it in SteamServiceProvider you don't pass Request $request to it:

public function register()
{
    $this->app['steamauth'] = $this->app->share(
        function () {
            return new SteamAuth();
        }
    );
}

In this case when I trying to generate PHPDoc via barryvdh/laravel-ide-helper it throws this exception.

timetorock commented 7 years ago

@KAMAELUA check this pull request #49