<?php

namespace App\Modules\Twilio;

use App\Modules\Twilio\Services\TwilioService;
use App\Modules\Twilio\Services\TwilioServiceInterface;

class TwilioServiceProvider extends \App\Modules\ServiceProvider
{
    public function register()
    {
        parent::register('twilio');

        // Bind Twilio service interface to implementation as singleton
        $this->app->singleton(TwilioServiceInterface::class, TwilioService::class);

        // Register alias for convenience
        $this->app->alias(TwilioServiceInterface::class, 'twilio');
    }

    public function boot()
    {
        parent::boot('twilio');
    }
} 