]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/iomanager.php
??? Not callable?
[quix0rs-gnu-social.git] / lib / iomanager.php
index f9d97d6a9752b7b7d426d84c43444396a9ab8415..cb2b35daee0cde3688e003f8324f7a6a2c60e3a8 100644 (file)
@@ -31,7 +31,6 @@
 
 abstract class IoManager
 {
-    const GLOBAL_SINGLE_ONLY = -1;
     const SINGLE_ONLY = 0;
     const INSTANCE_PER_SITE = 1;
     const INSTANCE_PER_PROCESS = 2;
@@ -39,7 +38,9 @@ abstract class IoManager
     /**
      * Factory function to get an appropriate subclass.
      */
-    public abstract static function get();
+    public static function get() {
+        throw new MethodNotImplementedException(__METHOD__);
+    }
 
     /**
      * Tell the i/o queue master if and how we can handle multi-site
@@ -60,9 +61,10 @@ abstract class IoManager
      * your manager about each site you'll have to handle so you
      * can do any necessary per-site setup.
      *
-     * @param string $site target site server name
+     * The new site will be the currently live configuration during
+     * this call.
      */
-    public function addSite($site)
+    public function addSite()
     {
         /* no-op */
     }