<?php

namespace Mtc\Modules\QuickOrder\Providers;

use Illuminate\Support\ServiceProvider;

class QuickOrderServiceProvider extends ServiceProvider
{
    public function register(): void
    {
        $this->mergeConfigFrom(__DIR__ . '/../config/quick_order.php', 'quick_order');
    }

    public function boot(): void
    {
        if (!config('quick_order.enabled')) {
            return;
        }

        $this->loadRoutesFrom(__DIR__ . '/../routes/quick_order.php');
    }
}
