Remove call to Config from artisan (#14362)

Defers the loading of Config a bit
This commit is contained in:
Jellyfrog
2022-09-18 06:44:45 +02:00
committed by GitHub
parent 0805002086
commit be4f39a2b4

View File

@@ -51,9 +51,9 @@ class Kernel extends ConsoleKernel
if (is_null($this->artisan)) {
parent::getArtisan();
/** @phpstan-ignore-next-line */
$this->artisan->setName(\LibreNMS\Config::get('project_name', 'LibreNMS'));
$this->artisan->setName('LibreNMS');
/** @phpstan-ignore-next-line */
$this->artisan->setVersion(Version::get()->local());
$this->artisan->setVersion(Version::VERSION);
}
return $this->artisan;