Skip to content

Commit

Permalink
Merge pull request #6 from jvoliveiraGN/main
Browse files Browse the repository at this point in the history
Release 1.0.4
  • Loading branch information
jvoliveiraGN authored Oct 26, 2021
2 parents d752eb5 + 5951827 commit 1252896
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": [{
Expand All @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Gerencianet_Magento2" setup_version='1.0.3'>
<module name="Gerencianet_Magento2" setup_version='1.0.4'>
<sequence>
<module name="Magento_Checkout" />
</sequence>
Expand Down

0 comments on commit 1252896

Please sign in to comment.