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