Skip to content

Commit

Permalink
Merge pull request #1193 from Ilyes512/small-cleanup
Browse files Browse the repository at this point in the history
[8.x] Joined config publish registering with the rest of the publish regist…
  • Loading branch information
taylorotwell authored Feb 17, 2020
2 parents 02a3d92 + 0fa684f commit b4ae2a1
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/PassportServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public function boot()
__DIR__.'/../database/factories' => database_path('factories'),
], 'passport-factories');

$this->publishes([
__DIR__.'/../config/passport.php' => config_path('passport.php'),
], 'passport-config');

$this->commands([
Console\InstallCommand::class,
Console\ClientCommand::class,
Expand Down Expand Up @@ -90,7 +94,6 @@ public function register()
$this->registerAuthorizationServer();
$this->registerResourceServer();
$this->registerGuard();
$this->offerPublishing();
}

/**
Expand Down Expand Up @@ -296,18 +299,4 @@ protected function deleteCookieOnLogout()
}
});
}

/**
* Setup the resource publishing groups for Passport.
*
* @return void
*/
protected function offerPublishing()
{
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../config/passport.php' => config_path('passport.php'),
], 'passport-config');
}
}
}

0 comments on commit b4ae2a1

Please sign in to comment.