<?php

namespace MoneyTransfer\Core\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Route;

class MoneyTransferServiceProvider extends ServiceProvider
{
    public function register()
    {
        // Register any bindings here
        $this->app->bind(
            \MoneyTransfer\Core\Repositories\TransferRepository::class,
            \MoneyTransfer\Core\Repositories\TransferRepository::class
        );
    }

    public function boot()
    {
        // Load routes
        $this->loadRoutesFrom(__DIR__ . '/../../routes/api.php');

        // Load migrations
        $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations');

        // Load views if any
        // $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'money-transfer');

        // Publish config if needed
        // $this->publishes([
        //     __DIR__ . '/../../config/money-transfer.php' => config_path('money-transfer.php'),
        // ], 'money-transfer-config');

        // Register commands if any
        // $this->commands([
        //     \MoneyTransfer\Core\Console\Commands\ProcessScheduledTransfers::class,
        // ]);
    }
} 