26 lines
534 B
PHP
26 lines
534 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Console\Commands\GitMonitorCacheCommand;
|
|
use App\Console\Commands\GitMonitorCheckCommand;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class GitMonitorServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
public function boot(): void
|
|
{
|
|
if ($this->app->runningInConsole()) {
|
|
$this->commands([
|
|
GitMonitorCheckCommand::class,
|
|
GitMonitorCacheCommand::class,
|
|
]);
|
|
}
|
|
}
|
|
}
|