socialite provider

This commit is contained in:
2019-06-23 06:09:13 -05:00
parent 6cb9ccddfa
commit a3f894359e
3 changed files with 0 additions and 0 deletions
@@ -0,0 +1,35 @@
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class EveOnlineServiceProvider extends ServiceProvider {
/**
* Bootstrap any application services
*
* @return void
*/
public function boot() {
$socialite = $this->app->make('Laravel\Socialite\Contracts\Factory');
$socialite->extend(
'eveonline',
function ($app) use ($socialite) {
$config = $app['config']['services.eveonline'];
return $socialite->buildProvider(EveOnlineSocialiteProvider::class, $config);
}
);
}
/**
* Register any application services
*
* @return void
*/
public function register() {
$this->mergeConfigFrom(__DIR__ . '/../../config/services.php', 'services');
}
}
?>