protected function execute(InputInterface $input, OutputInterface $output) { $rage4 = $this->getRage4DNS($input->getOption('credentials')); $domain = $rage4->domains->getByName($input->getArgument('name')); $content[0] = $domain->getTableRow(); $this->renderTable(Domain::getTableHeaders(), $content, $output); }
protected function execute(InputInterface $input, OutputInterface $output) { $rage4 = $this->getRage4DNS($input->getOption('credentials')); $domains = $rage4->domains->getAll(); $content = array(); foreach ($domains as $domain) { $content[] = $domain->getTableRow(); } $this->renderTable(Domain::getTableHeaders(), $content, $output); }