[Pkg-owncloud-commits] [php-sabredav] 68/275: pathFilter() method is now callable

David Prévot taffit at moszumanska.debian.org
Thu Sep 25 14:55:52 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 0bf4cea48a05bb0431b21cf3d27b94ce25c9a74b
Author: Dominik Tobschall <dominik at fruux.com>
Date:   Thu Jun 26 11:19:12 2014 +0200

    pathFilter() method is now callable
---
 lib/DAV/PropertyStorage/Plugin.php | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/lib/DAV/PropertyStorage/Plugin.php b/lib/DAV/PropertyStorage/Plugin.php
index 53d0ddf..274bb81 100644
--- a/lib/DAV/PropertyStorage/Plugin.php
+++ b/lib/DAV/PropertyStorage/Plugin.php
@@ -34,6 +34,23 @@ class Plugin extends ServerPlugin {
     }
 
     /**
+     * This method is triggered when an inaccessible method
+     * is invoked in the context of this object.
+     *
+     * Allows us to call $this->pathFilter() as a method.
+     *
+     * @param  string $method
+     * @param  array $args
+     * @return void|callable
+     */
+    public function __call($method, $args)
+    {
+        if (is_callable([$this, $method])) {
+            return call_user_func_array($this->$method, $args);
+        }
+    }
+
+    /**
      * This initializes the plugin.
      *
      * This function is called by Sabre\DAV\Server, after

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