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

David Prévot taffit at moszumanska.debian.org
Wed Jul 23 16:41:26 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 2368dd621bdfb4b11b9651c250e81f2dc0cc79a7
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 f3dbc59..09de3a8 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