/** * Basic information about the system. * * @return void */ public function infoCommand() { $data = $this->siteApiService->getSiteInfo(); foreach ($data as $key => $value) { $line = wordwrap($value, self::MAXIMUM_LINE_LENGTH - 43, PHP_EOL . str_repeat(' ', 43), TRUE); $this->outputLine('%-2s%-40s %s', array(' ', $key, $line)); } $this->logger->info('siteApi:info executes successfully.'); }