From 14079ba303fcb9a49f9be9a79a11f475e57dc592 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vitor=20Oliveira?= <79522328+jvoliveiraGN@users.noreply.github.com> Date: Tue, 26 Oct 2021 18:21:53 -0300 Subject: [PATCH 1/4] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 513a7cc..725c6d3 100755 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Módulo de pagamento da Gerencianet, com os métodos de pagamento de Boleto, PIX - [x] 2.4.0 - [x] 2.4.1 - [x] 2.4.2 +- [x] 2.4.3 # Instalação @@ -42,9 +43,10 @@ Módulo de pagamento da Gerencianet, com os métodos de pagamento de Boleto, PIX 2. Verifique se está dessa maneira seus diretórios na sua loja ```app/code/Gerencianet/Magento2``` 3. Habilite o módulo com o seguinte comando, ```bin/magento module:enable Gerencianet_Magento2``` 4. Instale o SDK PHP da Gerencianet utilizando o seguinte comando ```composer require gerencianet/gerencianet-sdk-php:3.1.0``` - 5. Execute o comando ```bin/magento setup:upgrade``` - 6. Execute o comando ```bin/magento setup:di:compile``` - 7. Execute o comando ```bin/magento cache:clean``` + 5. Instale o pacote de log através do comando ```composer require laminas/laminas-log``` + 6. Execute o comando ```bin/magento setup:upgrade``` + 7. Execute o comando ```bin/magento setup:di:compile``` + 8. Execute o comando ```bin/magento cache:clean``` # Configurações From 8524bc896a201001e36c741ea9850b58b4ed2584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vitor=20Oliveira?= <79522328+jvoliveiraGN@users.noreply.github.com> Date: Tue, 26 Oct 2021 18:23:45 -0300 Subject: [PATCH 2/4] Update composer.json --- composer.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index b3226f2..7a2dcbb 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "gerencianet/module-magento2", "description": "Gerencianet Payment Gateway", - "version": "1.0.3", + "version": "1.0.4", "type": "magento2-module", "license": "OSL-3.0", "authors": [{ @@ -28,7 +28,8 @@ "minimum-stability": "stable", "require": { "php": ">=7.3.0", - "gerencianet/gerencianet-sdk-php": "~3.1" + "gerencianet/gerencianet-sdk-php": "~3.1", + "laminas/laminas-log": "*" }, "autoload": { "files": [ From 055a51d1ce5b2f3d310fbe8f6196bde92f905c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vitor=20Oliveira?= <79522328+jvoliveiraGN@users.noreply.github.com> Date: Tue, 26 Oct 2021 18:24:08 -0300 Subject: [PATCH 3/4] Update module.xml --- etc/module.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/module.xml b/etc/module.xml index bbc9b3f..d0008e1 100755 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,6 +1,6 @@ - + From 5951827170c15fe0285ccd006cb9896a53cef4cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vitor=20Oliveira?= <79522328+jvoliveiraGN@users.noreply.github.com> Date: Tue, 26 Oct 2021 18:25:55 -0300 Subject: [PATCH 4/4] =?UTF-8?q?Depend=C3=AAncia=20atualizada:=20Laminas=20?= =?UTF-8?q?log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Helper/Data.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Helper/Data.php b/Helper/Data.php index a0af274..5f794ca 100755 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -104,8 +104,8 @@ public function isPixActive() /** Escreve um log na pasta var */ public function logger($string) { - $writer = new \Zend\Log\Writer\Stream(BP . '/var/log/gerencianet_magento2.log'); - $logger = new \Zend\Log\Logger(); + $writer = new \Laminas\Log\Writer\Stream(BP . '/var/log/gerencianet_magento2.log'); + $logger = new \Laminas\Log\Logger(); $logger->addWriter($writer); $logger->info(json_encode($string)); }