Files

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

17 lines
449 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
{
public function register()
{
// 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
}
}
}