35 lines
829 B
PHP
35 lines
829 B
PHP
<?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);
|
|
}
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Register any application services
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register() {
|
|
$this->mergeConfigFrom(__DIR__ . '/../../config/services.php', 'services');
|
|
}
|
|
}
|
|
|
|
?>
|