From 9b05f37fad88fdf78fdfee9473c27ba5be12abb2 Mon Sep 17 00:00:00 2001 From: Roeland Douma Date: Thu, 12 May 2016 09:43:53 +0200 Subject: lib/private/ocs to PSR-4 (#24558) * Move OC_OCS_XX to legacy * Move \OC\OCS to PSR-4 * OC_OCS_xx to \OC\OCS\xx * Moved OC_OCS_xx to proper namespace * OC_OCS_xx is still there for legacy reasons as a wrapper * No calls to OC_OCS_xx in \OC\OCS\ --- lib/private/legacy/ocs/cloud.php | 27 +++++++++++++++++++++++++++ lib/private/legacy/ocs/config.php | 27 +++++++++++++++++++++++++++ lib/private/legacy/ocs/person.php | 27 +++++++++++++++++++++++++++ lib/private/legacy/ocs/privatedata.php | 27 +++++++++++++++++++++++++++ lib/private/legacy/ocs/result.php | 27 +++++++++++++++++++++++++++ 5 files changed, 135 insertions(+) create mode 100644 lib/private/legacy/ocs/cloud.php create mode 100644 lib/private/legacy/ocs/config.php create mode 100644 lib/private/legacy/ocs/person.php create mode 100644 lib/private/legacy/ocs/privatedata.php create mode 100644 lib/private/legacy/ocs/result.php (limited to 'lib/private/legacy/ocs') diff --git a/lib/private/legacy/ocs/cloud.php b/lib/private/legacy/ocs/cloud.php new file mode 100644 index 00000000000..1430cfa94ed --- /dev/null +++ b/lib/private/legacy/ocs/cloud.php @@ -0,0 +1,27 @@ + + * @author Tom Needham + * + * @copyright Copyright (c) 2016, ownCloud, Inc. + * @license AGPL-3.0 + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see + * + */ + +/** + * @deprecated Since 9.1.0 use \OC\OCS\Cloud + */ +class OC_OCS_Cloud extends \OC\OCS\Cloud { +} diff --git a/lib/private/legacy/ocs/config.php b/lib/private/legacy/ocs/config.php new file mode 100644 index 00000000000..b2e473276b4 --- /dev/null +++ b/lib/private/legacy/ocs/config.php @@ -0,0 +1,27 @@ + + * @author Tom Needham + * + * @copyright Copyright (c) 2016, ownCloud, Inc. + * @license AGPL-3.0 + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see + * + */ + +/** + * @deprecated Since 9.1.0 use \OC\OCS\Config + */ +class OC_OCS_Config extends \OC\OCS\Config { +} diff --git a/lib/private/legacy/ocs/person.php b/lib/private/legacy/ocs/person.php new file mode 100644 index 00000000000..edf4a7ced55 --- /dev/null +++ b/lib/private/legacy/ocs/person.php @@ -0,0 +1,27 @@ + + * @author Tom Needham + * + * @copyright Copyright (c) 2016, ownCloud, Inc. + * @license AGPL-3.0 + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see + * + */ + +/** + * @deprecated Since 9.1.0 use \OC\OCS\Person + */ +class OC_OCS_Person extends \OC\OCS\Person { +} diff --git a/lib/private/legacy/ocs/privatedata.php b/lib/private/legacy/ocs/privatedata.php new file mode 100644 index 00000000000..3c402457366 --- /dev/null +++ b/lib/private/legacy/ocs/privatedata.php @@ -0,0 +1,27 @@ + + * @author Tom Needham + * + * @copyright Copyright (c) 2016, ownCloud, Inc. + * @license AGPL-3.0 + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see + * + */ + +/** + * @deprecated Since 9.1.0 use \OC\OCS\PrivateData + */ +class OC_OCS_Privatedata extends \OC\OCS\PrivateData { +} diff --git a/lib/private/legacy/ocs/result.php b/lib/private/legacy/ocs/result.php new file mode 100644 index 00000000000..b59c6404e25 --- /dev/null +++ b/lib/private/legacy/ocs/result.php @@ -0,0 +1,27 @@ + + * @author Roeland Jago Douma + * + * @copyright Copyright (c) 2016, ownCloud, Inc. + * @license AGPL-3.0 + * + * This code is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License, version 3, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License, version 3, + * along with this program. If not, see + * + */ + +/** + * @deprecated Since 9.1.0 use \OC\OCS\Result + */ +class OC_OCS_Result extends \OC\OCS\Result { +} -- cgit v1.2.3