Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the Magento Deployment Configuration to save the configuration va…
…lues
- Loading branch information
1 parent
0c4ad1c
commit 1f60b01
Showing
6 changed files
with
69 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace JustBetter\Sentry\Block\Adminhtml\System\Config; | ||
|
||
use Magento\Config\Block\System\Config\Form\Field; | ||
use Magento\Framework\Data\Form\Element\AbstractElement; | ||
|
||
class DeploymentConfigInfo extends Field | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
protected $_template = 'system/config/deployment-config-info.phtml'; | ||
|
||
public function render(AbstractElement $element) | ||
{ | ||
return $this->_toHtml(); | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
How to configure Sentry?,How to configure Sentry? | ||
"This module uses the <a href="https://devdocs.magento.com/guides/v2.3/config-guide/config/config-php.html" target="_BLANK">Magento Deployment Configuration</a> for most it's configuration. This means that you need to add this array to your `app/etc/env.php`:","This module uses the <a href="https://devdocs.magento.com/guides/v2.3/config-guide/config/config-php.html" target="_BLANK">Magento Deployment Configuration</a> for most it's configuration. This means that you need to add this array to your `app/etc/env.php`:" |
15 changes: 15 additions & 0 deletions
15
view/adminhtml/templates/system/config/deployment-config-info.phtml
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,15 @@ | ||
<td></td> | ||
<td> | ||
<h2><?php echo __('How to configure Sentry?'); ?></h2> | ||
<p><?php echo __('This module uses the <a href="https://devdocs.magento.com/guides/v2.3/config-guide/config/config-php.html" target="_BLANK">Magento Deployment Configuration</a> for most it\'s configuration. This means that you need to add this array to your `app/etc/env.php`:'); ?></p> | ||
|
||
<pre> | ||
<?php echo htmlentities(" | ||
'sentry' => [ | ||
'domain' => 'example.com', | ||
'environment' => null, | ||
'log_level' => \Monolog\Logger::WARNING, | ||
'isOverwriteProductionMode' => false, | ||
]"); ?> | ||
</pre> | ||
</td> |