ldc-refresh-sitemap/src/RefreshSitemapServiceProvider.php

35 lines
709 B
PHP
Raw Normal View History

2021-08-31 22:28:29 +02:00
<?php
namespace Kwaadpepper\RefreshSitemap;
use Illuminate\Support\ServiceProvider;
class RefreshSitemapServiceProvider extends ServiceProvider
{
protected $commands = [
'Kwaadpepper\RefreshSitemap\Console\Commands\RefreshSitemap'
];
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$this->publishes([
__DIR__ . '/../config' => config_path(),
], 'config');
}
public function register()
{
$this->mergeConfigFrom(
sprintf('%s/../config/refresh-sitemap.php', __DIR__),
'refresh-sitemap'
);
$this->commands($this->commands);
}
}