Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
455 B
PHP
Raw Permalink Normal View History

2019-01-08 21:42:56 -06:00
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
2019-01-08 21:42:56 -06:00
class CliServiceProvider extends ServiceProvider
2019-01-08 21:42:56 -06:00
{
2023-05-24 22:21:54 +02:00
public function register(): void
2019-01-08 21:42:56 -06:00
{
// Restrict LibreNMS CLI commands
if (defined('ARTISAN_BINARY') && ARTISAN_BINARY == 'lnms' && $this->app->environment() == 'production') {
$this->app->register(\NunoMaduro\LaravelConsoleSummary\LaravelConsoleSummaryServiceProvider::class);
2019-01-08 21:42:56 -06:00
}
}
}