pp-planer/app/Providers/AppServiceProvider.php
Thorsten Bus 04d271f96a style: apply Laravel Pint formatting across codebase
Auto-formatted by Laravel Pint (default Laravel preset): string
concatenation spacing, anonymous class brace placement, constructor
body shorthand, import ordering, and assertion indentation.
2026-03-02 23:02:03 +01:00

39 lines
851 B
PHP

<?php
namespace App\Providers;
use App\Socialite\ChurchToolsProvider;
use Illuminate\Support\Facades\Vite;
use Illuminate\Support\ServiceProvider;
use Laravel\Socialite\Facades\Socialite;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Vite::prefetch(concurrency: 3);
Socialite::extend('churchtools', function ($app) {
$config = $app['config']['services.churchtools'];
return new ChurchToolsProvider(
$app['request'],
$config['client_id'],
$config['client_secret'],
$config['redirect'],
);
});
}
}