<?php

namespace App\Providers;

use App\Auth\DummyUserProvider;
use Illuminate\Support\Facades\Auth;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;

class AuthServiceProvider extends ServiceProvider
{
    /**
     * The model to policy mappings for the application.
     *
     * @var array<class-string, class-string>
     */
    protected $policies = [
        //
    ];

    /**
     * Register any authentication / authorization services.
     */
    public function boot(): void
    {
        // Daftarkan provider kustom kita di sini
        Auth::provider('dummy', function ($app, array $config) {
            return new DummyUserProvider();
        });
    }
}