[Pkg-owncloud-commits] [php-sabredav] 19/42: Added CalendarRoot for forward compatbility.
David Prévot
taffit at moszumanska.debian.org
Fri Nov 28 22:47:49 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit 39574e4d738ec58548d7566571ae7a36b62de778
Author: Evert Pot <me at evertpot.com>
Date: Mon Nov 17 17:54:55 2014 -0500
Added CalendarRoot for forward compatbility.
---
ChangeLog.md | 8 ++++++++
lib/CalDAV/CalendarRoot.php | 18 ++++++++++++++++++
lib/CalDAV/CalendarRootNode.php | 2 ++
3 files changed, 28 insertions(+)
diff --git a/ChangeLog.md b/ChangeLog.md
index 4071b73..d5698c2 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,6 +1,14 @@
ChangeLog
=========
+2.0.6 (????-??-??)
+------------------
+
+* Added `Sabre\CalDAV\CalendarRoot` as an alias for
+ `Sabre\CalDAV\CalendarRootNode`. The latter is going to be deprecated in 2.1,
+ so this makes it slightly easier to write code that works in both branches.
+
+
2.0.5 (2014-10-14)
------------------
diff --git a/lib/CalDAV/CalendarRoot.php b/lib/CalDAV/CalendarRoot.php
new file mode 100644
index 0000000..1103778
--- /dev/null
+++ b/lib/CalDAV/CalendarRoot.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace Sabre\CalDAV;
+
+/**
+ * This class exists to provide forward-compatiblity with sabre/dav 2.1.
+ *
+ * You are encouraged to use CalendarRoot instead of CalendarRootNode, as the
+ * latter will be removed in a future version of sabre/dav.
+ *
+ * @copyright Copyright (C) 2007-2014 fruux GmbH (https://fruux.com/).
+ * @author Evert Pot (http://evertpot.com/)
+ * @license http://sabre.io/license/ Modified BSD License
+ */
+class CalendarRoot extends CalendarRootNode {
+
+}
+
diff --git a/lib/CalDAV/CalendarRootNode.php b/lib/CalDAV/CalendarRootNode.php
index 4f72ad4..8b6b2ca 100644
--- a/lib/CalDAV/CalendarRootNode.php
+++ b/lib/CalDAV/CalendarRootNode.php
@@ -13,6 +13,8 @@ use Sabre\DAVACL\PrincipalBackend;
* @copyright Copyright (C) 2007-2014 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
+ * @deprecated This class will be removed in a future version of sabredav.
+ * Use CalendarRoot instead of this class.
*/
class CalendarRootNode extends \Sabre\DAVACL\AbstractPrincipalCollection {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list