25 lines
569 B
PHP
25 lines
569 B
PHP
|
|
<?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');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function boot(): void
|
||
|
|
{
|
||
|
|
if ($this->app->runningInConsole()) {
|
||
|
|
$this->publishes([
|
||
|
|
__DIR__.'/../config/fedi-discover.php' => config_path('fedi-discover.php'),
|
||
|
|
], 'fedi-discover-config');
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|