summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-12 10:43:34 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-25 16:04:56 +0200
commitcbba55a26c9a2114c64b97d8b7dfdd41413356cd (patch)
tree76a9ba6c7607a182c98d600c9f97cd9fe20f9fad /apps/user_ldap
parent4ac283ecd364829d7d4c8a631182770c49dfbd6f (diff)
downloadnextcloud-server-cbba55a26c9a2114c64b97d8b7dfdd41413356cd.tar.gz
nextcloud-server-cbba55a26c9a2114c64b97d8b7dfdd41413356cd.zip
Move Group_LDAP and Group_Proxy to PSR-4
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/appinfo/app.php4
-rw-r--r--apps/user_ldap/lib/Command/Search.php2
-rw-r--r--apps/user_ldap/lib/Group_LDAP.php (renamed from apps/user_ldap/group_ldap.php)4
-rw-r--r--apps/user_ldap/lib/Group_Proxy.php (renamed from apps/user_ldap/group_proxy.php)4
-rw-r--r--apps/user_ldap/lib/jobs.php6
-rw-r--r--apps/user_ldap/tests/GroupLDAPTest.php (renamed from apps/user_ldap/tests/group_ldap.php)12
6 files changed, 16 insertions, 16 deletions
diff --git a/apps/user_ldap/appinfo/app.php b/apps/user_ldap/appinfo/app.php
index f1ac2dbd26b..430df230180 100644
--- a/apps/user_ldap/appinfo/app.php
+++ b/apps/user_ldap/appinfo/app.php
@@ -47,12 +47,12 @@ if(count($configPrefixes) === 1) {
$ldapAccess->setUserMapper(new OCA\User_LDAP\Mapping\UserMapping($dbc));
$ldapAccess->setGroupMapper(new OCA\User_LDAP\Mapping\GroupMapping($dbc));
$userBackend = new OCA\user_ldap\USER_LDAP($ldapAccess, $ocConfig);
- $groupBackend = new OCA\user_ldap\GROUP_LDAP($ldapAccess);
+ $groupBackend = new \OCA\User_LDAP\Group_LDAP($ldapAccess);
} else if(count($configPrefixes) > 1) {
$userBackend = new OCA\user_ldap\User_Proxy(
$configPrefixes, $ldapWrapper, $ocConfig
);
- $groupBackend = new OCA\user_ldap\Group_Proxy($configPrefixes, $ldapWrapper);
+ $groupBackend = new OCA\User_LDAP\Group_Proxy($configPrefixes, $ldapWrapper);
}
if(count($configPrefixes) > 0) {
diff --git a/apps/user_ldap/lib/Command/Search.php b/apps/user_ldap/lib/Command/Search.php
index f5352ae482a..84d4a2d1927 100644
--- a/apps/user_ldap/lib/Command/Search.php
+++ b/apps/user_ldap/lib/Command/Search.php
@@ -29,7 +29,7 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use OCA\user_ldap\User_Proxy;
-use OCA\user_ldap\Group_Proxy;
+use OCA\User_LDAP\Group_Proxy;
use OCA\user_ldap\lib\Helper;
use OCA\user_ldap\lib\LDAP;
use OCP\IConfig;
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/lib/Group_LDAP.php
index 617bdc3e6ed..163590ad03a 100644
--- a/apps/user_ldap/group_ldap.php
+++ b/apps/user_ldap/lib/Group_LDAP.php
@@ -32,12 +32,12 @@
*
*/
-namespace OCA\user_ldap;
+namespace OCA\User_LDAP;
use OCA\user_ldap\lib\Access;
use OCA\user_ldap\lib\BackendUtility;
-class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
+class Group_LDAP extends BackendUtility implements \OCP\GroupInterface {
protected $enabled = false;
/**
diff --git a/apps/user_ldap/group_proxy.php b/apps/user_ldap/lib/Group_Proxy.php
index 7d496a129a1..00225b54287 100644
--- a/apps/user_ldap/group_proxy.php
+++ b/apps/user_ldap/lib/Group_Proxy.php
@@ -22,7 +22,7 @@
*
*/
-namespace OCA\user_ldap;
+namespace OCA\User_LDAP;
use OCA\user_ldap\lib\ILDAPWrapper;
@@ -38,7 +38,7 @@ class Group_Proxy extends lib\Proxy implements \OCP\GroupInterface {
parent::__construct($ldap);
foreach($serverConfigPrefixes as $configPrefix) {
$this->backends[$configPrefix] =
- new \OCA\user_ldap\GROUP_LDAP($this->getAccess($configPrefix));
+ new \OCA\User_LDAP\Group_LDAP($this->getAccess($configPrefix));
if(is_null($this->refBackend)) {
$this->refBackend = &$this->backends[$configPrefix];
}
diff --git a/apps/user_ldap/lib/jobs.php b/apps/user_ldap/lib/jobs.php
index ecf2e6daa0f..842f96e07ce 100644
--- a/apps/user_ldap/lib/jobs.php
+++ b/apps/user_ldap/lib/jobs.php
@@ -158,7 +158,7 @@ class Jobs extends \OC\BackgroundJob\TimedJob {
}
/**
- * @return \OCA\user_ldap\GROUP_LDAP|\OCA\user_ldap\Group_Proxy
+ * @return \OCA\User_LDAP\Group_LDAP|\OCA\User_LDAP\Group_Proxy
*/
static private function getGroupBE() {
if(!is_null(self::$groupBE)) {
@@ -184,9 +184,9 @@ class Jobs extends \OC\BackgroundJob\TimedJob {
$userMapper = new UserMapping($dbc);
$ldapAccess->setGroupMapper($groupMapper);
$ldapAccess->setUserMapper($userMapper);
- self::$groupBE = new \OCA\user_ldap\GROUP_LDAP($ldapAccess);
+ self::$groupBE = new \OCA\User_LDAP\Group_LDAP($ldapAccess);
} else {
- self::$groupBE = new \OCA\user_ldap\Group_Proxy($configPrefixes, $ldapWrapper);
+ self::$groupBE = new \OCA\User_LDAP\Group_Proxy($configPrefixes, $ldapWrapper);
}
return self::$groupBE;
diff --git a/apps/user_ldap/tests/group_ldap.php b/apps/user_ldap/tests/GroupLDAPTest.php
index 51bb1d84732..2075f42fa51 100644
--- a/apps/user_ldap/tests/group_ldap.php
+++ b/apps/user_ldap/tests/GroupLDAPTest.php
@@ -24,21 +24,21 @@
*
*/
-namespace OCA\user_ldap\tests;
+namespace OCA\User_LDAP\Tests;
-use \OCA\user_ldap\GROUP_LDAP as GroupLDAP;
+use OCA\User_LDAP\Group_LDAP as GroupLDAP;
use \OCA\user_ldap\lib\Access;
use \OCA\user_ldap\lib\Connection;
use \OCA\user_ldap\lib\ILDAPWrapper;
/**
- * Class Test_Group_Ldap
+ * Class GroupLDAPTest
*
* @group DB
*
* @package OCA\user_ldap\tests
*/
-class Test_Group_Ldap extends \Test\TestCase {
+class GroupLDAPTest extends \Test\TestCase {
private function getAccessMock() {
static $conMethods;
static $accMethods;
@@ -325,7 +325,7 @@ class Test_Group_Ldap extends \Test\TestCase {
* tests that a user listing is complete, if all it's members have the group
* as their primary.
*/
- public function testUsersInGroupPrimaryMembersOnly() {
+ public function testUsersInGroupPrimaryMembersOnly() {
$access = $this->getAccessMock();
$this->enableGroups($access);
@@ -360,7 +360,7 @@ class Test_Group_Ldap extends \Test\TestCase {
* tests that a user counting is complete, if all it's members have the group
* as their primary.
*/
- public function testCountUsersInGroupPrimaryMembersOnly() {
+ public function testCountUsersInGroupPrimaryMembersOnly() {
$access = $this->getAccessMock();
$this->enableGroups($access);