PHPPM\Commands\StatusCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $config = $this->initializeConfig($input, $output, false);
        $handler = new Client();
        $handler->setSocketPath($config['socket-path']);
        $handler->getStatus(function ($status) use($output) {
            foreach ($status as $key => $value) {
                $output->writeln(sprintf('%s: %s', $key, $value));
            }
        });
    }