From 9c50cec43085bf782287e07381d001ee7a932fb4 Mon Sep 17 00:00:00 2001 From: "Oe.Salim Duran" Date: Thu, 5 May 2022 12:57:44 +0200 Subject: [PATCH] - RemoteConnection class moved to graph-common. - RemoteConnection is marked as deprecated in graph-client. --- composer.json | 2 +- composer.lock | 20 ++--- src/RemoteConnection.php | 165 +-------------------------------------- 3 files changed, 15 insertions(+), 172 deletions(-) diff --git a/composer.json b/composer.json index f1c24cd..e0bbed6 100644 --- a/composer.json +++ b/composer.json @@ -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/" } diff --git a/composer.lock b/composer.lock index dbce69c..367fcad 100644 --- a/composer.lock +++ b/composer.lock @@ -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", @@ -31,11 +31,11 @@ } ], "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", @@ -67,12 +67,12 @@ } }, "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": [ { diff --git a/src/RemoteConnection.php b/src/RemoteConnection.php index d868fed..9d9f0f1 100644 --- a/src/RemoteConnection.php +++ b/src/RemoteConnection.php @@ -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 + * + * @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 { } -- 2.34.1