From 408eafca34565176bfc52773ed13321a5bf16b16 Mon Sep 17 00:00:00 2001 From: angryThom Date: Tue, 31 Mar 2015 09:54:36 +0200 Subject: [PATCH] Added a composer json reader --- .../ProjectVersioner/Reader/ComposerJson.php | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/Naneau/ProjectVersioner/Reader/ComposerJson.php diff --git a/src/Naneau/ProjectVersioner/Reader/ComposerJson.php b/src/Naneau/ProjectVersioner/Reader/ComposerJson.php new file mode 100644 index 0000000..f3d0581 --- /dev/null +++ b/src/Naneau/ProjectVersioner/Reader/ComposerJson.php @@ -0,0 +1,50 @@ +version)) { + return false; + } + + return trim($json->version); + } +}