diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-14 14:35:24 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-22 10:32:42 +0100 |
commit | ee02165005f3fd24e1a17fdb3faeedda036d93c7 (patch) | |
tree | 1fd047788bb8f439665ff3e61d135bb6a62856c9 /lib | |
parent | e2e5eedb40a15ef3a6971e2145abec24873c4400 (diff) | |
download | nextcloud-server-ee02165005f3fd24e1a17fdb3faeedda036d93c7.tar.gz nextcloud-server-ee02165005f3fd24e1a17fdb3faeedda036d93c7.zip |
Move the notification API to public namespace
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/notification/action.php | 2 | ||||
-rw-r--r-- | lib/private/notification/manager.php | 5 | ||||
-rw-r--r-- | lib/private/notification/notification.php | 3 | ||||
-rw-r--r-- | lib/private/server.php | 2 | ||||
-rw-r--r-- | lib/public/iservercontainer.php | 2 | ||||
-rw-r--r-- | lib/public/notification/iaction.php (renamed from lib/private/notification/iaction.php) | 8 | ||||
-rw-r--r-- | lib/public/notification/iapp.php (renamed from lib/private/notification/iapp.php) | 8 | ||||
-rw-r--r-- | lib/public/notification/imanager.php (renamed from lib/private/notification/imanager.php) | 8 | ||||
-rw-r--r-- | lib/public/notification/inotification.php (renamed from lib/private/notification/inotification.php) | 8 | ||||
-rw-r--r-- | lib/public/notification/inotifier.php (renamed from lib/private/notification/inotifier.php) | 8 |
10 files changed, 22 insertions, 32 deletions
diff --git a/lib/private/notification/action.php b/lib/private/notification/action.php index 1730756c1de..deac6807653 100644 --- a/lib/private/notification/action.php +++ b/lib/private/notification/action.php @@ -22,6 +22,8 @@ namespace OC\Notification; +use OCP\Notification\IAction; + class Action implements IAction { /** @var string */ diff --git a/lib/private/notification/manager.php b/lib/private/notification/manager.php index 239b5bfe5c7..a14a1deec0c 100644 --- a/lib/private/notification/manager.php +++ b/lib/private/notification/manager.php @@ -22,6 +22,11 @@ namespace OC\Notification; +use OCP\Notification\IApp; +use OCP\Notification\IManager; +use OCP\Notification\INotification; +use OCP\Notification\INotifier; + class Manager implements IManager { /** @var IApp */ protected $apps; diff --git a/lib/private/notification/notification.php b/lib/private/notification/notification.php index 677658eb3e8..6568f53f255 100644 --- a/lib/private/notification/notification.php +++ b/lib/private/notification/notification.php @@ -22,6 +22,9 @@ namespace OC\Notification; +use OCP\Notification\IAction; +use OCP\Notification\INotification; + class Notification implements INotification { /** @var string */ protected $app; diff --git a/lib/private/server.php b/lib/private/server.php index a16e6b9839b..0cb52b79184 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -1152,7 +1152,7 @@ class Server extends ServerContainer implements IServerContainer { /** * Get the Notification Manager * - * @return \OC\Notification\IManager + * @return \OCP\Notification\IManager * @since 8.2.0 */ public function getNotificationManager() { diff --git a/lib/public/iservercontainer.php b/lib/public/iservercontainer.php index 1976f59f613..259f991414a 100644 --- a/lib/public/iservercontainer.php +++ b/lib/public/iservercontainer.php @@ -468,7 +468,7 @@ interface IServerContainer { /** * Get the Notification Manager * - * @return \OC\Notification\IManager + * @return \OCP\Notification\IManager * @since 8.2.0 */ public function getNotificationManager(); diff --git a/lib/private/notification/iaction.php b/lib/public/notification/iaction.php index 79e28ecef89..81b842a9852 100644 --- a/lib/private/notification/iaction.php +++ b/lib/public/notification/iaction.php @@ -19,17 +19,13 @@ * */ -namespace OC\Notification; +namespace OCP\Notification; /** * Interface IAction * - * @package OC\Notification + * @package OCP\Notification * @since 8.2.0 - * - * DEVELOPER NOTE: - * The notification api is experimental only in 8.2.0! Do not start using it, - * if you can not prepare an update for the next version afterwards. */ interface IAction { /** diff --git a/lib/private/notification/iapp.php b/lib/public/notification/iapp.php index 8ae4f6a5437..eae3fe92712 100644 --- a/lib/private/notification/iapp.php +++ b/lib/public/notification/iapp.php @@ -19,17 +19,13 @@ * */ -namespace OC\Notification; +namespace OCP\Notification; /** * Interface IApp * - * @package OC\Notification + * @package OCP\Notification * @since 8.2.0 - * - * DEVELOPER NOTE: - * The notification api is experimental only in 8.2.0! Do not start using it, - * if you can not prepare an update for the next version afterwards. */ interface IApp { /** diff --git a/lib/private/notification/imanager.php b/lib/public/notification/imanager.php index 2f8e3ba39fc..b891385c793 100644 --- a/lib/private/notification/imanager.php +++ b/lib/public/notification/imanager.php @@ -19,17 +19,13 @@ * */ -namespace OC\Notification; +namespace OCP\Notification; /** * Interface IManager * - * @package OC\Notification + * @package OCP\Notification * @since 8.2.0 - * - * DEVELOPER NOTE: - * The notification api is experimental only in 8.2.0! Do not start using it, - * if you can not prepare an update for the next version afterwards. */ interface IManager extends IApp, INotifier { /** diff --git a/lib/private/notification/inotification.php b/lib/public/notification/inotification.php index 921f0779b92..058e9721d84 100644 --- a/lib/private/notification/inotification.php +++ b/lib/public/notification/inotification.php @@ -19,17 +19,13 @@ * */ -namespace OC\Notification; +namespace OCP\Notification; /** * Interface INotification * - * @package OC\Notification + * @package OCP\Notification * @since 8.2.0 - * - * DEVELOPER NOTE: - * The notification api is experimental only in 8.2.0! Do not start using it, - * if you can not prepare an update for the next version afterwards. */ interface INotification { /** diff --git a/lib/private/notification/inotifier.php b/lib/public/notification/inotifier.php index c4312308fc0..1740029664c 100644 --- a/lib/private/notification/inotifier.php +++ b/lib/public/notification/inotifier.php @@ -19,17 +19,13 @@ * */ -namespace OC\Notification; +namespace OCP\Notification; /** * Interface INotifier * - * @package OC\Notification + * @package OCP\Notification * @since 8.2.0 - * - * DEVELOPER NOTE: - * The notification api is experimental only in 8.2.0! Do not start using it, - * if you can not prepare an update for the next version afterwards. */ interface INotifier { /** |