Commit 174dc4ec authored by Cyril L'Orphelin's avatar Cyril L'Orphelin
Browse files

Merge branch '1.0' into 'master'

CurlException

See merge request !2
parents a5d45004 d29401ac
...@@ -4,9 +4,4 @@ CHANGELOG ...@@ -4,9 +4,4 @@ CHANGELOG
1.0 1.0
----- -----
* The first branch ! * The first branch !
\ No newline at end of file
1.1
-----
* Sensio insights fixes
\ No newline at end of file
# Lavoisier Query 1.1 # Lavoisier Query 1.0
A simple PHP static library to query a Lavoisier service and map the results to objects via hydrators. A simple PHP static library to query a Lavoisier service and map the results to objects via hydrators.
Some basics hydrators are provided, but you will easily create your own. Some basics hydrators are provided, but you will easily create your own.
...@@ -40,4 +40,3 @@ object(SimpleXMLElement)#2 (1) { ...@@ -40,4 +40,3 @@ object(SimpleXMLElement)#2 (1) {
### EntriesHydrator ### EntriesHydrator
EntriesHydrator is an XML Hydrator which allows you to map any XML files which is matching to [ex_entries xsd schema](https://gitlab.in2p3.fr/opsportal/lavoisierquery/raw/master/ex_entries.xsd). EntriesHydrator is an XML Hydrator which allows you to map any XML files which is matching to [ex_entries xsd schema](https://gitlab.in2p3.fr/opsportal/lavoisierquery/raw/master/ex_entries.xsd).
You can customize default binding by setting default|root|key binding to your own class. You can customize default binding by setting default|root|key binding to your own class.
...@@ -14,5 +14,5 @@ ...@@ -14,5 +14,5 @@
"require": { "require": {
"php": ">=5.3.0" "php": ">=5.3.0"
} }
} }
\ No newline at end of file
...@@ -10,8 +10,8 @@ namespace Lavoisier; ...@@ -10,8 +10,8 @@ namespace Lavoisier;
use \Lavoisier\Hydrators\DefaultHydrator; use \Lavoisier\Hydrators\DefaultHydrator;
use \Lavoisier\Exceptions\HTTPStatusException; use \Lavoisier\Exceptions\HTTPStatusException;
use \Lavoisier\Exceptions\cURLException; use \Lavoisier\Exceptions\CurlException;
use \Lavoisier\Hydrators\HydratorInterface; use Lavoisier\Hydrators\IHydrator;
class Query class Query
{ {
...@@ -345,7 +345,7 @@ class Query ...@@ -345,7 +345,7 @@ class Query
} }
if (isset($resCURL['last_curl_error']) && (!empty($resCURL['last_curl_error']))) { if (isset($resCURL['last_curl_error']) && (!empty($resCURL['last_curl_error']))) {
throw new cURLException($this, $resCURL['last_curl_error']); throw new CurlException($this, $resCURL['last_curl_error']);
} }
if (($this->operation === 'lavoisier')) { if (($this->operation === 'lavoisier')) {
...@@ -363,4 +363,4 @@ class Query ...@@ -363,4 +363,4 @@ class Query
); );
} }
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment