trove/packages/Lvl0/FediDiscover/src/FediDiscoverServiceProvider.php

27 lines
646 B
PHP
Raw Normal View History

2026-04-23 17:41:24 +02:00
<?php
declare(strict_types=1);
namespace Lvl0\FediDiscover;
use Illuminate\Support\ServiceProvider;
class FediDiscoverServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->mergeConfigFrom(__DIR__ . '/../config/fedi-discover.php', 'fedi-discover');
2026-04-23 17:41:24 +02:00
}
public function boot(): void
{
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
2026-04-23 17:41:24 +02:00
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__ . '/../config/fedi-discover.php' => config_path('fedi-discover.php'),
2026-04-23 17:41:24 +02:00
], 'fedi-discover-config');
}
}
}