diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-06 20:35:10 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-06 21:20:01 +0200 |
commit | 1ec5e8a1abfd71b1b587ebba5acdf7d8aaf1d913 (patch) | |
tree | 6781e6766012d10a5da0c6c9c4a419415938a3c8 /core/Command/User | |
parent | 8a5af2d335da21c8f12b9f08773e95982572d40d (diff) | |
download | nextcloud-server-1ec5e8a1abfd71b1b587ebba5acdf7d8aaf1d913.tar.gz nextcloud-server-1ec5e8a1abfd71b1b587ebba5acdf7d8aaf1d913.zip |
Switch user:report from deprecated tablehelper to table
Diffstat (limited to 'core/Command/User')
-rw-r--r-- | core/Command/User/Report.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Command/User/Report.php b/core/Command/User/Report.php index 01eb51f17f9..9a3bd9e5906 100644 --- a/core/Command/User/Report.php +++ b/core/Command/User/Report.php @@ -27,6 +27,7 @@ namespace OC\Core\Command\User; 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; @@ -49,8 +50,7 @@ class Report extends Command { } 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)) { @@ -72,7 +72,7 @@ class Report extends Command { $rows[] = array('user directories', $userDirectoryCount); $table->setRows($rows); - $table->render($output); + $table->render(); } private function countUsers() { |