Skip to content

Commit

Permalink
0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jul 6, 2017
1 parent 3ce4a17 commit 4986e98
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
18 changes: 8 additions & 10 deletions API/Client/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
use Df\Core\Exception as DFE;
// 2017-07-02
final class JSON extends \Dfe\Dynamics365\API\Client {
/**
* 2017-07-06
* @override
* @see \Df\API\Client::_construct()
* @used-by \Df\API\Client::__construct()
*/
final protected function _construct() {parent::_construct(); $this->addFilterJsonDecode();}

/**
* 2017-07-02
* 2017-07-03
Expand All @@ -19,16 +27,6 @@ final class JSON extends \Dfe\Dynamics365\API\Client {
*/
protected function accept() {return 'json';}

/**
* 2017-07-05
* @override
* @see \Df\API\Client::responseFilterC()
* @used-by \Df\API\Client::p()
* @used-by p()
* @return string
*/
protected function responseFilterC() {return \Df\API\Response\Filter\JSON::class;}

/**
* 2017-07-05
* @see \Df\API\Client::responseValidatorC()
Expand Down
2 changes: 1 addition & 1 deletion API/Validator/JSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function rs() {
$e = dfa($this->r(), 'error');
// 2017-06-30 It correctly works even if the key does not exist in the array.
unset($e['innererror']['stacktrace']);
return df_json_encode_pretty($e);
return df_json_encode($e);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion T/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ abstract class TestCase extends \Df\Core\TestCase {
* @used-by \Dfe\Dynamics365\T\Price::productpricelevels()
* @param array(string => mixed) $r
*/
final protected function o(array $r) {echo df_json_encode_pretty($r);}
final protected function o(array $r) {echo df_json_encode($r);}

/**
* 2017-07-01
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/dynamics365"
,"version": "0.2.0"
,"version": "0.2.1"
,"description": "The «Microsoft Dynamics 365» extension for Magento 2."
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/dynamics365"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=2.7.39"}
,"require": {"mage2pro/core": ">=2.7.40"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Dynamics365\\": ""}}
,"keywords": [
"CRM"
Expand Down

0 comments on commit 4986e98

Please sign in to comment.