Skip to content

Commit

Permalink
Merge pull request #1726 from nextcloud/fix-symfony-table
Browse files Browse the repository at this point in the history
symfony replaced table helper by class, fixes two broken LDAP occ com…
  • Loading branch information
MorrisJobke authored Oct 13, 2016
2 parents 9aae4a0 + 9e817e9 commit 05869e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/user_ldap/lib/Access.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ public function username2dn($name) {
}

/**
public function ocname2dn($name, $isUser) {
* returns the internal ownCloud name for the given LDAP DN of the group, false on DN outside of search DN or failure
* @param string $fdn the dn of the group object
* @param string $ldapName optional, the display name of the object
Expand Down
3 changes: 2 additions & 1 deletion apps/user_ldap/lib/Command/ShowConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
namespace OCA\User_LDAP\Command;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
Expand Down Expand Up @@ -91,7 +92,7 @@ protected function renderConfigs($configIDs, $output, $withPassword) {
$configuration = $configHolder->getConfiguration();
ksort($configuration);

$table = $this->getHelperSet()->get('table');
$table = new Table($output);
$table->setHeaders(array('Configuration', $id));
$rows = array();
foreach($configuration as $key => $value) {
Expand Down
3 changes: 2 additions & 1 deletion apps/user_ldap/lib/Command/ShowRemnants.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
namespace OCA\User_LDAP\Command;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down Expand Up @@ -64,7 +65,7 @@ protected function configure() {
*/
protected function execute(InputInterface $input, OutputInterface $output) {
/** @var \Symfony\Component\Console\Helper\Table $table */
$table = $this->getHelperSet()->get('table');
$table = new Table($output);
$table->setHeaders(array(
'ownCloud name', 'Display Name', 'LDAP UID', 'LDAP DN', 'Last Login',
'Dir', 'Sharer'));
Expand Down

0 comments on commit 05869e4

Please sign in to comment.