- RemoteConnection class moved to graph-common. v0.1.1
authorOe.Salim Duran <salim.duran@graph-it.com>
Thu, 5 May 2022 10:57:44 +0000 (12:57 +0200)
committerOe.Salim Duran <salim.duran@graph-it.com>
Thu, 5 May 2022 10:57:44 +0000 (12:57 +0200)
- RemoteConnection is marked as deprecated in graph-client.

composer.json
composer.lock
src/RemoteConnection.php

index f1c24cd5fda0cb893a6b14e189a44ddbddd74285..e0bbed6d2d5f1c13add26e9d33d8e1bc0abf5780 100644 (file)
@@ -10,7 +10,7 @@
     ],
     "require": {
         "php": ">=5.6.0",
-        "graphit/graph-common": "^0.1.0"
+        "graphit/graph-common": "^0.1.1"
     },
     "autoload": {
         "psr-4": { "Graphit\\Graph\\Client\\": "src/" }
index dbce69c363529806617c34c8e500aadbbda0bd94..367fcada802d178df913d8acac52f2033dc29fca 100644 (file)
@@ -4,15 +4,15 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "c27737b66cf149fe0e8b38e332ff3394",
+    "content-hash": "8819b656c8da858aeee741066f00c123",
     "packages": [
         {
             "name": "graphit/graph-common",
-            "version": "v0.1.0",
+            "version": "v0.1.1",
             "source": {
                 "type": "git",
                 "url": "ssh://git@git.graph-it.com:44022/graphit/graph-common",
-                "reference": "48d5e16c3a0afbdceef1ace82a69f100c61d7a22"
+                "reference": "fae80afcb63233232c0bf4824e599bc101293225"
             },
             "require": {
                 "php": ">=5.6.0",
                 }
             ],
             "description": "Vom Graphserver und -Client geteilte Sourcen.",
-            "time": "2022-02-10T13:49:02+00:00"
+            "time": "2022-05-04T16:06:22+00:00"
         },
         {
             "name": "symfony/polyfill-ctype",
-            "version": "v1.24.0",
+            "version": "v1.25.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/symfony/polyfill-ctype.git",
                 }
             },
             "autoload": {
-                "psr-4": {
-                    "Symfony\\Polyfill\\Ctype\\": ""
-                },
                 "files": [
                     "bootstrap.php"
-                ]
+                ],
+                "psr-4": {
+                    "Symfony\\Polyfill\\Ctype\\": ""
+                }
             },
             "notification-url": "https://packagist.org/downloads/",
             "license": [
@@ -97,7 +97,7 @@
                 "portable"
             ],
             "support": {
-                "source": "https://github.com/symfony/polyfill-ctype/tree/v1.24.0"
+                "source": "https://github.com/symfony/polyfill-ctype/tree/v1.25.0"
             },
             "funding": [
                 {
index d868fed00c0f7318996b85470bdba2371d33dcfe..9d9f0f1978608b87749da23d3c0dbad86cb0ec90 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace Graphit\Graph\Client;
 
-use Graphit\Graph\Common\ConnectionInterface;
+use Graphit\Graph\Common\RemoteConnection as RConnection;
 
 /**
  * Die RemoteConnection ist die Basis-Klasse für ConnectionInterface
@@ -11,164 +11,7 @@ use Graphit\Graph\Common\ConnectionInterface;
  * RemoteConnection::call() weitergeleitet.
  *
  * @author Sebastian Wassen <sebastian.wassen@graph-it.org>
+ *
+ * @deprecated Use Graphit\Graph\Common\RemoteConnection from graphit/graph-common instead.
  */
-abstract class RemoteConnection implements ConnectionInterface
-{
-  /**
-   * Leitet den Methodenaufruf an den Graphen weiter.
-   *
-   * @param string $method die aufgerufene Methode
-   * @param array  $params die Paremeter der Methode
-   *
-   * @return mixed|null die Antwort vom Graphen
-   */
-  protected abstract function call($method, array $params);
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function erzeuge($knoten_typ)
-  {
-    return $this->call('erzeuge', array($knoten_typ));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function vernichte($node_guid)
-  {
-    return $this->call('vernichte', array($node_guid));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function knotentyp($node_guid)
-  {
-    return $this->call('knotentyp', array($node_guid));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function setze($node_guid, $attributknoten_typ, $wert)
-  {
-    return $this->call('setze', array($node_guid, $attributknoten_typ, $wert));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function attribut($node_guid, $attributknoten_typ)
-  {
-    return $this->call('attribut', array($node_guid, $attributknoten_typ));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function attribute($node_guid, $knoten_typ, $attribute)
-  {
-    return $this->call('attribute', array($node_guid, $knoten_typ, $attribute));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function attributsknoten($attributknoten_typ, $wert)
-  {
-    return $this->call('attributsknoten', array($attributknoten_typ, $wert));
-  }
-
-  /** */
-  public function berechne($node_guid, $datenfunktion_name)
-  {
-    return $this->call('berechne', array($node_guid, $datenfunktion_name));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function verknuepfe($node_guid1, $node_guid2)
-  {
-    return $this->call('verknuepfe', array($node_guid1, $node_guid2));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function entknuepfe($node_guid1, $node_guid2)
-  {
-    return $this->call('entknuepfe', array($node_guid1, $node_guid2));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function knoten($node_guid, $knoten_typ)
-  {
-    return $this->call('knoten', array($node_guid, $knoten_typ));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function liste($node_guid, $knoten_typ, $reihenfolge = false, $eingrenzung = false, array $parameter = array())
-  {
-    return $this->call('liste', array($node_guid, $knoten_typ, $reihenfolge, $eingrenzung, $parameter));
-  }
-
-  /** */
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function listeattribute($node_guid, $knoten_typ, $attribute, $reihenfolge = false, $eingrenzung = false, array $parameter = array())
-  {
-    return $this->call('listeattribute', array($node_guid, $knoten_typ, $attribute, $reihenfolge, $eingrenzung, $parameter));
-  }
-
-  /** */
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function listezahl($node_guid, $knoten_typ, $eingrenzung = false, array $parameter = array())
-  {
-    return $this->call('listezahl', array($node_guid, $knoten_typ, $eingrenzung, $parameter));
-  }
-
-  /** */
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function moegliche($node_guid, $knoten_typ, $reihenfolge = false, $eingrenzung = false, array $parameter = array())
-  {
-    return $this->call('moegliche', array($node_guid, $knoten_typ, $reihenfolge, $eingrenzung, $parameter));
-  }
-
-  /** */
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function moeglicheattribute($node_guid, $knoten_typ, $attribute, $reihenfolge = false, $eingrenzung = false, array $parameter = array())
-  {
-    return $this->call('moeglicheattribute', array($node_guid, $knoten_typ, $attribute, $reihenfolge, $eingrenzung, $parameter));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function moeglichezahl($node_guid, $knoten_typ, $eingrenzung = false, array $parameter = array())
-  {
-    return $this->call('moeglichezahl', array($node_guid, $knoten_typ, $eingrenzung, $parameter));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function alle($knoten_typ, $reihenfolge = false, $eingrenzung = false, array $parameter = array())
-  {
-    return $this->call('alle', array($knoten_typ, $reihenfolge, $eingrenzung, $parameter));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function alleattribute($knoten_typ, $attribute, $reihenfolge = false, $eingrenzung = false, array $parameter = array())
-  {
-    return $this->call('alleattribute', array($knoten_typ, $attribute, $reihenfolge, $eingrenzung, $parameter));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function allezahl($knoten_typ, $eingrenzung = false, array $parameter = array())
-  {
-    return $this->call('allezahl', array($knoten_typ, $eingrenzung, $parameter));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function aktion($node_guid, $aktionfunktion_name)
-  {
-    return $this->call('aktion', array($node_guid, $aktionfunktion_name));
-  }
-
-  /** @psalm-suppress MixedInferredReturnType, MixedReturnStatement */
-  public function service($graphmodulservice_name, ...$parameter)
-  {
-    return $this->call('service', func_get_args());
-  }
-
-  /** */
-  public function sessionattribut($schluessel, $default = null)
-  {
-    return $this->call('sessionattribut',[$schluessel, $default]);
-  }
-
-  /** */
-  public function sessionsetze($schluessel, $wert)
-  {
-    return $this->call('sessionsetze', [$schluessel, $wert]);
-  }
-}
+abstract class RemoteConnection extends RConnection { }