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
|
|
|
|
|
{
|
2026-04-23 23:03:06 +02:00
|
|
|
$this->mergeConfigFrom(__DIR__ . '/../config/fedi-discover.php', 'fedi-discover');
|
2026-04-23 17:41:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function boot(): void
|
|
|
|
|
{
|
2026-04-23 23:03:06 +02:00
|
|
|
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
|
2026-04-23 20:53:22 +02:00
|
|
|
|
2026-04-23 17:41:24 +02:00
|
|
|
if ($this->app->runningInConsole()) {
|
|
|
|
|
$this->publishes([
|
2026-04-23 23:03:06 +02:00
|
|
|
__DIR__ . '/../config/fedi-discover.php' => config_path('fedi-discover.php'),
|
2026-04-23 17:41:24 +02:00
|
|
|
], 'fedi-discover-config');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|