Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Nov 17, 2017
1 parent 40301db commit c20dde6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
use Df\PaypalClone\W\Exception\InvalidSignature;
use Df\Xml\G;
use Dfe\YandexKassa\W\Event as Ev;
use Magento\Framework\App\Response\Http;
use Magento\Framework\App\Response\HttpInterface as IHttp;
use Magento\Framework\App\Response\Http as HttpResponse;
use Magento\Framework\App\Response\HttpInterface as IHttpResponse;
use Zend_Date as ZD;
use \Exception as Ex;

Expand Down Expand Up @@ -55,6 +55,9 @@
class Result extends \Df\Framework\W\Result {
/**
* 2017-10-02
* 2017-11-17
* We can use the PHP «final» keyword here,
* because the method is absent in @see \Magento\Framework\Controller\ResultInterface
* @override
* @see \Df\Framework\W\Result::__toString()
* @used-by render()
Expand Down Expand Up @@ -182,20 +185,18 @@ final function __toString() {return df_xml_g("{$this->_ev->t()}Response", [], [G
* @override
* @see \Magento\Framework\Controller\AbstractResult::render()
* https://github.com/magento/magento2/blob/2.1.0/lib/internal/Magento/Framework/Controller/AbstractResult.php#L109-L113
* @param IHttp|Http $res
* @return $this
* @param IHttpResponse|HttpResponse $r
*/
final protected function render(IHttp $res) {
$res->setBody($this->__toString());
final protected function render(IHttpResponse $r) {
$r->setBody($this->__toString());
/**
* 2017-10-02
* In English: «MIME type: application/xml».
* https://tech.yandex.com/money/doc/payment-solution/payment-notifications/payment-notifications-http-docpage/
* In Russian: «MIME-тип: application/xml».
* https://tech.yandex.ru/money/doc/payment-solution/payment-notifications/payment-notifications-http-docpage/
*/
df_response_content_type('application/xml', $res);
return $this;
df_response_content_type('application/xml', $r);
}

/**
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/yandex-kassa"
,"version": "1.0.3"
,"version": "1.0.4"
,"description": "Yandex.Kassa (Яндекс.Касса, Yandex.Checkout) integration with Magento 2"
,"type": "magento2-module"
,"homepage": "https://mage2.pro/c/extensions/yandex-kassa"
Expand All @@ -11,7 +11,7 @@
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
"role": "Developer"
}]
,"require": {"mage2pro/core": ">=3.3.18"}
,"require": {"mage2pro/core": ">=3.3.20"}
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\YandexKassa\\": ""}}
,"keywords": [
"API"
Expand Down

0 comments on commit c20dde6

Please sign in to comment.