Browse Source

Move classes from outside lib/ to PSR-4

tags/v9.1.0beta1
Joas Schilling 8 years ago
parent
commit
5001036fd4
No account linked to committer's email address

+ 1
- 3
apps/files_sharing/appinfo/app.php View File

@@ -26,15 +26,13 @@
*
*/

namespace OCA\Files_Sharing\Appinfo;

$l = \OC::$server->getL10N('files_sharing');

\OC::$CLASSPATH['OC_Share_Backend_File'] = 'files_sharing/lib/share/file.php';
\OC::$CLASSPATH['OC_Share_Backend_Folder'] = 'files_sharing/lib/share/folder.php';
\OC::$CLASSPATH['OC\Files\Storage\Shared'] = 'files_sharing/lib/sharedstorage.php';

$application = new Application();
$application = new \OCA\Files_Sharing\AppInfo\Application();
$application->registerMountProviders();

\OCA\Files_Sharing\Helper::registerHooks();

+ 2
- 0
apps/files_sharing/appinfo/info.xml View File

@@ -21,6 +21,8 @@ Turning the feature off removes shared files and folders on the server for all s
<files>public.php</files>
</public>

<namespace>Files_Sharing</namespace>

<background-jobs>
<job>OCA\Files_sharing\Lib\DeleteOrphanedSharesJob</job>
<job>OCA\Files_sharing\ExpireSharesJob</job>

+ 1
- 2
apps/files_sharing/appinfo/routes.php View File

@@ -24,11 +24,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
namespace OCA\Files_Sharing\AppInfo;

use OCP\API;

$application = new Application();
$application = new \OCA\Files_Sharing\AppInfo\Application();
$application->registerRoutes($this, [
'resources' => [
'ExternalShares' => ['url' => '/api/externalShares'],

apps/files_sharing/api/ocssharewrapper.php → apps/files_sharing/lib/API/OCSShareWrapper.php View File


apps/files_sharing/api/remote.php → apps/files_sharing/lib/API/Remote.php View File


apps/files_sharing/api/share20ocs.php → apps/files_sharing/lib/API/Share20OCS.php View File


apps/files_sharing/api/sharees.php → apps/files_sharing/lib/API/Sharees.php View File


apps/files_sharing/appinfo/application.php → apps/files_sharing/lib/AppInfo/Application.php View File


+ 1
- 1
apps/files_sharing/tests/testcase.php View File

@@ -32,7 +32,7 @@ namespace OCA\Files_Sharing\Tests;

use OC\Files\Filesystem;
use OCA\Files\Share;
use OCA\Files_Sharing\Appinfo\Application;
use OCA\Files_Sharing\AppInfo\Application;

/**
* Class Test_Files_Sharing_Base

Loading…
Cancel
Save