Skip to content

Commit e3478de

Browse files
committed
fix binding
1 parent ab9e204 commit e3478de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PassportServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ protected function registerJWTParser()
249249
*/
250250
protected function registerResourceServer()
251251
{
252-
$this->app->singleton(ResourceServer::class, function () {
252+
$this->app->singleton(ResourceServer::class, function ($container) {
253253
return new ResourceServer(
254-
$this->app->make(Bridge\AccessTokenRepository::class),
254+
$container->make(Bridge\AccessTokenRepository::class),
255255
$this->makeCryptKey('public')
256256
);
257257
});

0 commit comments

Comments
 (0)