<?php

namespace Modules\DemoLogin\Providers;

use Illuminate\Support\ServiceProvider;

/**
 * Wiring for the demo-only quick-login module. Self-contained: merges its own
 * config and loads its own views. Routes are loaded via start.php (declared in
 * module.json "files"). Depends on the SaasSwitcher module for the project
 * registry + connection switching.
 */
class DemoLoginServiceProvider extends ServiceProvider
{
    public function register(): void
    {
        $this->mergeConfigFrom(__DIR__ . '/../Config/config.php', 'demologin');
    }

    public function boot(): void
    {
        $this->loadViewsFrom(__DIR__ . '/../Resources/views', 'demologin');
    }
}
