/** * @param \Symfony\Component\Console\Input\InputInterface $input * @param \Symfony\Component\Console\Output\OutputInterface $output * @return mixed */ protected function execute(InputInterface $input, OutputInterface $output) { $output->writeln('<info>INFO:</info> environment=<comment>' . $this->config->environment() . '</comment>'); if (!$this->pidFileExists()) { $output->writeln('<error>ERROR:</error> ' . $this->getPidFileName() . ' does not exist'); $output->writeln('<error>ERROR:</error> ' . Version::NAME . ' service not running'); } else { $output->writeln('<info>INFO:</info> ' . Version::NAME . ' service is running'); } if ('' === $this->container->version()) { $output->writeln('<error>ERROR:</error> container service is not available'); } else { $output->writeln('<info>INFO:</info> container service is available'); } if ('' === $this->loadBalancer->version()) { $output->writeln('<error>ERROR:</error> load-balancer service is not available'); } else { $output->writeln('<info>INFO:</info> load-balancer service is available'); } }