/** * Execute the command. * @todo Decide if this can be isolated into a service. * * @param \Symfony\Component\Console\Input\InputInterface $input * @param \Symfony\Component\Console\Output\OutputInterface $output * @return void */ public function execute(InputInterface $input, OutputInterface $output) { // Prepare. $locker = new Locker(); $locker->openLockFile(); // View. $table = $this->getHelper('table'); $table->setHeaders(ServerItem::getAllProperties())->setRows($locker->toArray()); $table->render($output); }