<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\Support\ConfigStore;

class ConfigServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('config.store', function ($app) {
            return new ConfigStore();
        });

        // Register the facade alias for backward compatibility
        $this->app->alias('config.store', 'DBconfig');
    }
} 