Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 20, 2018
1 parent 34f00fe commit 3835f8f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ final class Settings extends \Df\Config\Settings {
* 2018-06-20
* @return string|null
*/
function accessKey() {return $this->p();}
function accessKey() {return $this->b('customAccessKey') ? $this->p() :
'f3ec8c540499e4bcd75de4ee09fcbed1'
;}

/**
* 2018-06-20
Expand Down
11 changes: 11 additions & 0 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ So the `sortOrder` value is 1920. -->
translate='label'
>
<label>Fixer.io</label>
<field
id='customAccessKey'
showInDefault='1' showInStore='1' showInWebsite='1'
sortOrder='1'
translate='label'
type='Df\Framework\Form\Element\Checkbox'
>
<label>Use a custom Access Key?</label>
<backend_model>Df\Config\Backend\Checkbox</backend_model>
</field>
<field
id='accessKey'
showInDefault='1' showInStore='1' showInWebsite='1'
Expand All @@ -46,6 +56,7 @@ So the `sortOrder` value is 1920. -->
<label>Access Key</label>
<comment><![CDATA[<a href="https://github.com/fixerAPI/fixer/blob/5d7a8986/README.md#readme">How to get it?</a>]]></comment>
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
<depends><field id='customAccessKey'>1</field></depends>
</field>
</group>
</section>
Expand Down

0 comments on commit 3835f8f

Please sign in to comment.