[Pkg-owncloud-commits] [php-sabredav] 06/64: Removing $server->getPLugin($className) syntax.

David Prévot taffit at moszumanska.debian.org
Thu Dec 11 15:13:21 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag 2.2.0alpha1
in repository php-sabredav.

commit 2c21f9375766503e1a660ab40fd781f32d3e4ac2
Author: Evert Pot <me at evertpot.com>
Date:   Thu Oct 23 22:56:59 2014 -0400

    Removing $server->getPLugin($className) syntax.
---
 ChangeLog.md       | 2 ++
 lib/DAV/Server.php | 5 -----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/ChangeLog.md b/ChangeLog.md
index 75b6035..9772b55 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -16,6 +16,8 @@ ChangeLog
   * `Sabre\DAV\URLUtil`
 * Removed: `Sabre\DAV\Client::addTrustedCertificates` and
   `Sabre\DAV\Client::setVerifyPeer`.
+* Removed: `Sabre\DAV\Plugin::getPlugin()` can now no longer return plugins
+  based on its class name.
 
 2.1.0-alpha2 (2014-10-23)
 -------------------------
diff --git a/lib/DAV/Server.php b/lib/DAV/Server.php
index ce261b4..2f34bfd 100644
--- a/lib/DAV/Server.php
+++ b/lib/DAV/Server.php
@@ -421,11 +421,6 @@ class Server extends EventEmitter {
         if (isset($this->plugins[$name]))
             return $this->plugins[$name];
 
-        // This is a fallback and deprecated.
-        foreach($this->plugins as $plugin) {
-            if (get_class($plugin)===$name) return $plugin;
-        }
-
         return null;
 
     }

-- 
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