From a7d677cb1f71f07321831441d22c87e4e0fceaa2 Mon Sep 17 00:00:00 2001 From: Groups Date: Fri, 12 May 2017 17:17:41 +0300 Subject: [PATCH 1/3] hydrator interface implemented --- src/Pho/Framework/ParticleTrait.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/Pho/Framework/ParticleTrait.php b/src/Pho/Framework/ParticleTrait.php index 38b92dd..2acc84f 100644 --- a/src/Pho/Framework/ParticleTrait.php +++ b/src/Pho/Framework/ParticleTrait.php @@ -303,10 +303,23 @@ public function existentials(): array { return [ "node" => $this, - "creator" => $this->creator, - "context" => $this->context + "creator" => $this->creator(), + "context" => $this->context() ]; } + public function creator(): Actor + { + if(isset($this->creator)) + return $this->creator; + else + return $this->hydratedCreator(); + } + + protected function hydratedCreator(): Actor + { + + } + } \ No newline at end of file From d1e586770bd19a45441321ad1ce8a8e006e2f8c1 Mon Sep 17 00:00:00 2001 From: Emre Sokullu Date: Fri, 12 May 2017 17:19:54 +0300 Subject: [PATCH 2/3] Update VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 1809198..fcdb2e1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.4.0 +4.0.0 From 1583decea140f0d1711a4014805b6d571d3f8937 Mon Sep 17 00:00:00 2001 From: Groups Date: Fri, 12 May 2017 17:38:26 +0300 Subject: [PATCH 3/3] reorganized composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 652d7d1..f033202 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "require": { "php":">=5.3.0", "zendframework/zend-file": "*", - "phonetworks/pho-lib-graph": "^1.1" + "phonetworks/pho-lib-graph": "^2.0" }, "require-dev": { "phpunit/phpunit": "^5.7",