Files
w4rpservices/app/Providers/EveOnlineServiceProvider2.php
2019-06-23 06:07:14 -05:00

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');
}
}
?>