AzuraCast/src/Console/Command/Internal/GetIpCommand.php

21 lines
430 B
PHP
Raw Normal View History

<?php
2021-07-19 05:53:45 +00:00
declare(strict_types=1);
namespace App\Console\Command\Internal;
2020-07-09 02:32:34 +00:00
use App\Console\Command\CommandAbstract;
use App\Service\AzuraCastCentral;
use Symfony\Component\Console\Style\SymfonyStyle;
class GetIpCommand extends CommandAbstract
{
public function __invoke(
SymfonyStyle $io,
AzuraCastCentral $acCentral
): int {
2021-07-19 05:53:45 +00:00
$io->write($acCentral->getIp() ?? 'Unknown');
return 0;
}
}