added a Trait for EveAuth2
eve online service provider 2 eve online socialite provider 2
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class EveOnlineServiceProvider2 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);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user