From e90ec32c2dd85ef7afad208252f902246c2fb52e Mon Sep 17 00:00:00 2001 From: a-sansara Date: Wed, 15 Mar 2017 23:41:52 +0100 Subject: [PATCH 1/3] remove yaml dependency --- composer.json | 3 +-- config/pwsclient.yml.dist | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/composer.json b/composer.json index 218f921..f48f787 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,6 @@ }, "require" : { "php" : ">=5.4", - "symfony/yaml" : "^3.2", - "meta-tech/pws-auth" : "~2.1" + "meta-tech/pws-auth" : "^2.1" } } diff --git a/config/pwsclient.yml.dist b/config/pwsclient.yml.dist index 2ab45b3..43c6044 100644 --- a/config/pwsclient.yml.dist +++ b/config/pwsclient.yml.dist @@ -1,16 +1,16 @@ # pwsclient config # 0 : disable, 1 : verboose, 2 : most verboose -debug : 1 -protocol : https:// +debug : 2 +protocol : http:// hostname : pwsserver.docker verifypeer : 0 verifyhost : 0 # file storing the server 's session id - must be out of DocumentRoot and read/writable by server store : wsess -login : test -password : test -key : test +login : dev +password : foo +key : ed830045da9861d29c46f36b4f4b1a4d4b223408667c52428370e51b615e8769 # 0 : display cli, 1 : display html html_output : 0 # http authentication From 44787b0f7d1749e42f1bb0ffd7a30c08be31361c Mon Sep 17 00:00:00 2001 From: a-sansara Date: Wed, 15 Mar 2017 23:51:19 +0100 Subject: [PATCH 2/3] typo in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b5680bb..642378a 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Or add the package to your `composer.json`. ``` "require": { - "meta-tech/pws-client" : "~1.3" + "meta-tech/pws-client" : "^1.3" } ``` @@ -50,7 +50,7 @@ if ($response->done) { } // post example -$client->post('/ws/person/222/update', [ 'firstname' => 'toto']); +$response = $client->post('/ws/person/222/update', [ 'firstname' => 'toto']); if ($response->done) { // do stuff } @@ -95,7 +95,7 @@ However, meta-tech always return this simple Json Structure : `{ done : boolean, msg : 'string contextual msg', data : whatever }` see [ meta-tech/pws-server ](https://github.com/meta-tech/pws-server) -and [ meta-tech/sile-core ](https://github.com/meta-tech/silex-core) +and [ meta-tech/silex-core ](https://github.com/meta-tech/silex-core) ### License From 3e9f077187ed107a67f9259184646f16371fd0c2 Mon Sep 17 00:00:00 2001 From: a-sansara Date: Thu, 16 Mar 2017 02:24:37 +0100 Subject: [PATCH 3/3] add ssl options on config in README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 642378a..ab46594 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,9 @@ if ($response->done) { debug : 1 protocol : https:// hostname : pwsserver.docker +# ssl options +verifypeer : 0 +verifyhost : 0 # file storing the server 's session id - must be out of DocumentRoot and read/writable by server store : wsess login : test