Skip to content

Commit

Permalink
fix binding
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Apr 5, 2021
1 parent ab9e204 commit e3478de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PassportServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ protected function registerJWTParser()
*/
protected function registerResourceServer()
{
$this->app->singleton(ResourceServer::class, function () {
$this->app->singleton(ResourceServer::class, function ($container) {
return new ResourceServer(
$this->app->make(Bridge\AccessTokenRepository::class),
$container->make(Bridge\AccessTokenRepository::class),
$this->makeCryptKey('public')
);
});
Expand Down

0 comments on commit e3478de

Please sign in to comment.