Skip to content

Commit

Permalink
Merge pull request #9 from marcelo-machado-gn/main
Browse files Browse the repository at this point in the history
Nova release: v1.0.6
  • Loading branch information
guilhermecotaGn authored Dec 23, 2022
2 parents 1252896 + 742ca38 commit cde9c10
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 14 deletions.
5 changes: 4 additions & 1 deletion Block/Adminhtml/Order/View/Custom.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ class Custom extends Template {
public function __construct(
Template\Context $context,
OrderRepositoryInterface $orderRepositoryInterface,
array $data = []
array $data = null
) {
if ($data == null) {
$data = [];
}
parent::__construct($context, $data);
$this->_orderRepositoryInterface = $orderRepositoryInterface;
}
Expand Down
5 changes: 4 additions & 1 deletion Block/Checkout/Success.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ class Success extends Template {
public function __construct(
Session $checkoutSession,
Context $context,
array $data = []
array $data = null
) {
if ($data == null) {
$data = [];
}
parent::__construct($context, $data);
$this->_checkoutSession = $checkoutSession;
}
Expand Down
5 changes: 4 additions & 1 deletion Block/Order/Payment/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ class Info extends Template {
public function __construct(
Template\Context $context,
OrderRepositoryInterface $orderRepositoryInterface,
array $data = []
array $data = null
) {
if ($data == null) {
$data = [];
}
parent::__construct($context, $data);
$this->_orderRepositoryInterface = $orderRepositoryInterface;
}
Expand Down
5 changes: 4 additions & 1 deletion Block/System/Config/Form/Field/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ public function __construct(
\Magento\Framework\Data\Form\Element\Factory $factoryElement,
\Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection,
\Magento\Framework\Escaper $escaper,
$data = [],
array $data = null,
DirectoryList $dl
) {
if ($data == null) {
$data = [];
}
parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
$this->_dir = $dl;
}
Expand Down
5 changes: 4 additions & 1 deletion Model/Payment/Billet.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@ public function __construct(
Logger $logger,
AbstractResource $resource = null,
AbstractDb $resourceCollection = null,
array $data = [],
array $data = null,
GerencianetHelper $helperData,
StoreManagerInterface $storeManager,
Session $checkoutSession
) {
if ($data == null) {
$data = [];
}
parent::__construct(
$context,
$registry,
Expand Down
5 changes: 4 additions & 1 deletion Model/Payment/CreditCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,14 @@ public function __construct(
Logger $logger,
AbstractResource $resource = null,
AbstractDb $resourceCollection = null,
array $data = [],
array $data = null,
GerencianetHelper $helperData,
StoreManagerInterface $storeManager,
Session $checkoutSession
) {
if ($data == null) {
$data = [];
}
parent::__construct(
$context,
$registry,
Expand Down
5 changes: 4 additions & 1 deletion Model/Payment/Pix.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ public function __construct(
Logger $logger,
AbstractResource $resource = null,
AbstractDb $resourceCollection = null,
array $data = [],
array $data = null,
GerencianetHelper $helperData,
StoreManagerInterface $storeManager
) {
if ($data == null) {
$data = [];
}
parent::__construct(
$context,
$registry,
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ Módulo de pagamento da Gerencianet, com os métodos de pagamento de Boleto, PIX
- Requer que o [SDK PHP Gerencianet](https://github.com/gerencianet/gn-api-sdk-php) esteja instalado.

## Versões Compativeis:
- [x] 2.3.X
- [x] 2.4.0
- [x] 2.4.1
- [x] 2.4.2
- [x] 2.4.3
- [x] 2.4.4
- [x] 2.4.5

# Instalação

Expand Down
4 changes: 2 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.4",
"version": "1.0.6",
"type": "magento2-module",
"license": "OSL-3.0",
"authors": [{
Expand All @@ -28,7 +28,7 @@
"minimum-stability": "stable",
"require": {
"php": ">=7.3.0",
"gerencianet/gerencianet-sdk-php": "~3.1",
"gerencianet/gerencianet-sdk-php": " ~4.0",
"laminas/laminas-log": "*"
},
"autoload": {
Expand Down

0 comments on commit cde9c10

Please sign in to comment.