use OCP\IUserManager;
use Symfony\Component\Console\Command\Command;
+use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
}
protected function execute(InputInterface $input, OutputInterface $output) {
- /** @var \Symfony\Component\Console\Helper\TableHelper $table */
- $table = $this->getHelperSet()->get('table');
+ $table = new Table($output);
$table->setHeaders(array('User Report', ''));
$userCountArray = $this->countUsers();
if(!empty($userCountArray)) {
$rows[] = array('user directories', $userDirectoryCount);
$table->setRows($rows);
- $table->render($output);
+ $table->render();
}
private function countUsers() {