From 8dc25321d3ca1725b970e86aa72e1f8106e05913 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 18 May 2016 15:28:50 +0200 Subject: [PATCH] Move FederatedFileSharing to PSR-4 --- apps/federatedfilesharing/appinfo/app.php | 4 +--- .../lib/{addresshandler.php => AddressHandler.php} | 0 .../{appinfo/application.php => lib/AppInfo/Application.php} | 0 .../unshare.php => lib/BackgroundJob/UnShare.php} | 0 .../lib/{discoverymanager.php => DiscoveryManager.php} | 0 ...{federatedshareprovider.php => FederatedShareProvider.php} | 0 .../lib/{notifications.php => Notifications.php} | 0 .../lib/{tokenhandler.php => TokenHandler.php} | 0 .../tests/{addresshandlertest.php => AddressHandlerTest.php} | 0 ...edshareprovidertest.php => FederatedShareProviderTest.php} | 0 .../tests/{notificationstest.php => NotificationsTest.php} | 0 .../tests/{tokenhandlertest.php => TokenHandlerTest.php} | 0 12 files changed, 1 insertion(+), 3 deletions(-) rename apps/federatedfilesharing/lib/{addresshandler.php => AddressHandler.php} (100%) rename apps/federatedfilesharing/{appinfo/application.php => lib/AppInfo/Application.php} (100%) rename apps/federatedfilesharing/{backgroundjob/unshare.php => lib/BackgroundJob/UnShare.php} (100%) rename apps/federatedfilesharing/lib/{discoverymanager.php => DiscoveryManager.php} (100%) rename apps/federatedfilesharing/lib/{federatedshareprovider.php => FederatedShareProvider.php} (100%) rename apps/federatedfilesharing/lib/{notifications.php => Notifications.php} (100%) rename apps/federatedfilesharing/lib/{tokenhandler.php => TokenHandler.php} (100%) rename apps/federatedfilesharing/tests/{addresshandlertest.php => AddressHandlerTest.php} (100%) rename apps/federatedfilesharing/tests/{federatedshareprovidertest.php => FederatedShareProviderTest.php} (100%) rename apps/federatedfilesharing/tests/{notificationstest.php => NotificationsTest.php} (100%) rename apps/federatedfilesharing/tests/{tokenhandlertest.php => TokenHandlerTest.php} (100%) diff --git a/apps/federatedfilesharing/appinfo/app.php b/apps/federatedfilesharing/appinfo/app.php index 23af62037a..4666d343f7 100644 --- a/apps/federatedfilesharing/appinfo/app.php +++ b/apps/federatedfilesharing/appinfo/app.php @@ -19,7 +19,5 @@ * */ -namespace OCA\FederatedFileSharing\AppInfo; - -$app = new Application('federatedfilesharing'); +$app = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing'); $app->registerSettings(); diff --git a/apps/federatedfilesharing/lib/addresshandler.php b/apps/federatedfilesharing/lib/AddressHandler.php similarity index 100% rename from apps/federatedfilesharing/lib/addresshandler.php rename to apps/federatedfilesharing/lib/AddressHandler.php diff --git a/apps/federatedfilesharing/appinfo/application.php b/apps/federatedfilesharing/lib/AppInfo/Application.php similarity index 100% rename from apps/federatedfilesharing/appinfo/application.php rename to apps/federatedfilesharing/lib/AppInfo/Application.php diff --git a/apps/federatedfilesharing/backgroundjob/unshare.php b/apps/federatedfilesharing/lib/BackgroundJob/UnShare.php similarity index 100% rename from apps/federatedfilesharing/backgroundjob/unshare.php rename to apps/federatedfilesharing/lib/BackgroundJob/UnShare.php diff --git a/apps/federatedfilesharing/lib/discoverymanager.php b/apps/federatedfilesharing/lib/DiscoveryManager.php similarity index 100% rename from apps/federatedfilesharing/lib/discoverymanager.php rename to apps/federatedfilesharing/lib/DiscoveryManager.php diff --git a/apps/federatedfilesharing/lib/federatedshareprovider.php b/apps/federatedfilesharing/lib/FederatedShareProvider.php similarity index 100% rename from apps/federatedfilesharing/lib/federatedshareprovider.php rename to apps/federatedfilesharing/lib/FederatedShareProvider.php diff --git a/apps/federatedfilesharing/lib/notifications.php b/apps/federatedfilesharing/lib/Notifications.php similarity index 100% rename from apps/federatedfilesharing/lib/notifications.php rename to apps/federatedfilesharing/lib/Notifications.php diff --git a/apps/federatedfilesharing/lib/tokenhandler.php b/apps/federatedfilesharing/lib/TokenHandler.php similarity index 100% rename from apps/federatedfilesharing/lib/tokenhandler.php rename to apps/federatedfilesharing/lib/TokenHandler.php diff --git a/apps/federatedfilesharing/tests/addresshandlertest.php b/apps/federatedfilesharing/tests/AddressHandlerTest.php similarity index 100% rename from apps/federatedfilesharing/tests/addresshandlertest.php rename to apps/federatedfilesharing/tests/AddressHandlerTest.php diff --git a/apps/federatedfilesharing/tests/federatedshareprovidertest.php b/apps/federatedfilesharing/tests/FederatedShareProviderTest.php similarity index 100% rename from apps/federatedfilesharing/tests/federatedshareprovidertest.php rename to apps/federatedfilesharing/tests/FederatedShareProviderTest.php diff --git a/apps/federatedfilesharing/tests/notificationstest.php b/apps/federatedfilesharing/tests/NotificationsTest.php similarity index 100% rename from apps/federatedfilesharing/tests/notificationstest.php rename to apps/federatedfilesharing/tests/NotificationsTest.php diff --git a/apps/federatedfilesharing/tests/tokenhandlertest.php b/apps/federatedfilesharing/tests/TokenHandlerTest.php similarity index 100% rename from apps/federatedfilesharing/tests/tokenhandlertest.php rename to apps/federatedfilesharing/tests/TokenHandlerTest.php