This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
119 changed files
with
5,006 additions
and
12,455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/MercadoPago/Core/Block/Adminhtml/System/Config/Version.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
namespace MercadoPago\Core\Block\Adminhtml\System\Config; | ||
/** | ||
* Config backend model for version display. | ||
*/ | ||
class Version extends \Magento\Framework\App\Config\Value | ||
{ | ||
/** | ||
* @var \Magento\Framework\Module\ResourceInterface | ||
*/ | ||
protected $moduleResource; | ||
|
||
/** | ||
* @param \Magento\Framework\Model\Context $context | ||
* @param \Magento\Framework\Registry $registry | ||
* @param \Magento\Framework\App\Config\ScopeConfigInterface $config | ||
* @param \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList | ||
* @param \Magento\Framework\Module\ResourceInterface $moduleResource | ||
* @param \Magento\Framework\Model\ResourceModel\AbstractResource $resource | ||
* @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection | ||
* @param array $data | ||
*/ | ||
public function __construct( | ||
\Magento\Framework\Model\Context $context, | ||
\Magento\Framework\Registry $registry, | ||
\Magento\Framework\App\Config\ScopeConfigInterface $config, | ||
\Magento\Framework\App\Cache\TypeListInterface $cacheTypeList, | ||
\Magento\Framework\Module\ResourceInterface $moduleResource, | ||
\Magento\Framework\Model\ResourceModel\AbstractResource $resource = null, | ||
\Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null, | ||
array $data = [] | ||
) { | ||
$this->moduleResource = $moduleResource; | ||
|
||
parent::__construct( | ||
$context, | ||
$registry, | ||
$config, | ||
$cacheTypeList, | ||
$resource, | ||
$resourceCollection, | ||
$data | ||
); | ||
} | ||
|
||
/** | ||
* Inject current installed module version as the config value. | ||
* | ||
* @return void | ||
*/ | ||
public function afterLoad() | ||
{ | ||
$version = $this->moduleResource->getDbVersion('MercadoPago_Core'); | ||
|
||
$this->setValue($version); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
137 changes: 0 additions & 137 deletions
137
src/MercadoPago/Core/Block/Calculator/CalculatorLink.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.