23 lines
630 B
PHP
23 lines
630 B
PHP
<?php
|
|
|
|
namespace Modules\Api\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Modules\Api\Services\WebhookDispatcher;
|
|
|
|
final class ApiServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
$this->app->register(RouteServiceProvider::class);
|
|
$this->mergeConfigFrom(module_path('Api', 'Config/config.php'), 'api');
|
|
$this->app->singleton(WebhookDispatcher::class);
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
$this->loadMigrationsFrom(module_path('Api', 'Database/Migrations'));
|
|
$this->loadViewsFrom(module_path('Api', 'Resources/views'), 'api');
|
|
}
|
|
}
|