From 27f49445fbae0b5ce1766424ef6f23f22251ccf2 Mon Sep 17 00:00:00 2001 From: James Gilliland Date: Sat, 5 Mar 2022 18:04:55 -0600 Subject: [PATCH] Start GenDuid replacement --- src/Commands/GenDuid.php | 37 +++++++++++++++++++++++++++++++++++++ src/PfattKernel.php | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 src/Commands/GenDuid.php diff --git a/src/Commands/GenDuid.php b/src/Commands/GenDuid.php new file mode 100644 index 0000000..ace8fab --- /dev/null +++ b/src/Commands/GenDuid.php @@ -0,0 +1,37 @@ +logger = $logger; + } + + /** + * {@inheritDoc} + */ + protected function execute( + InputInterface $input, + OutputInterface $output + ): int { + $this->logger->setOutput($output); + + $this->logger->info('Starting 5268AC ping monitor ...'); + return Command::SUCCESS; + } +} diff --git a/src/PfattKernel.php b/src/PfattKernel.php index 61eed51..4effc31 100644 --- a/src/PfattKernel.php +++ b/src/PfattKernel.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace Pfatt; +use Pfatt\Commands\GenDuid; use Pfatt\Commands\Monitor; use Pfatt\Commands\Startup; use Pfatt\Service\Config; @@ -25,6 +26,7 @@ final class PfattKernel private $commands = [ 'monitor' => Monitor::class, 'startup' => Startup::class, + 'gen-duid' => GenDuid::class, ]; public function create(): Application