Skip to content

Commit

Permalink
fix: adding pagarmeConfig property
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateus Picoloto committed Aug 31, 2023
1 parent 914ef4f commit fe0a20a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Observer/PaymentMethodAvailable.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
use Pagarme\Core\Kernel\Aggregates\Configuration;
use Pagarme\Core\Recurrence\Aggregates\Plan;
use Pagarme\Core\Recurrence\Services\RecurrenceService;
use Pagarme\Pagarme\Concrete\Magento2CoreSetup;
Expand All @@ -22,13 +23,19 @@ class PaymentMethodAvailable implements ObserverInterface
*/
protected $recurrenceProductHelper;

/**
* @var Configuration
*/
protected $pagarmeConfig;

public function __construct(
RecurrenceProductHelper $recurrenceProductHelper,
PagarmeConfigProvider $pagarmeConfigProvider
) {
Magento2CoreSetup::bootstrap();
$this->recurrenceProductHelper = $recurrenceProductHelper;
$this->pagarmeConfigProvider = $pagarmeConfigProvider;
$this->pagarmeConfig = Magento2CoreSetup::getModuleConfiguration();
}

/**
Expand Down

0 comments on commit fe0a20a

Please sign in to comment.