Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 16, 2017
1 parent 46558d0 commit ca73f54
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions ConfigProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
namespace Dfe\YandexKassa;
use Df\PaypalClone\Source\OptionsLocation as OL;
use Df\Payment\Settings\Options as O;
// 2017-09-17
final class ConfigProvider extends \Df\Payment\ConfigProvider {
/**
Expand All @@ -10,10 +10,15 @@ final class ConfigProvider extends \Df\Payment\ConfigProvider {
* @used-by \Df\Payment\ConfigProvider::getConfig()
* @return array(string => mixed)
*/
protected function config() {/** @var Settings $s */ $s = $this->s(); return [
// 2017-09-17
// @used-by Df_Payments/withOptions::options()
// https://github.com/mage2pro/core/blob/2.0.36/Payment/view/frontend/web/withOptions.js?ts=4#L55
'options' => $s->options()->o()
] + parent::config();}
protected function config() {
$s = $this->s(); /** @var Settings $s */
$o = $s->options(); /** @var O $o */
return [
'needShowOptions' => $o->needShow()
// 2017-09-17
// @used-by Df_Payments/withOptions::options()
// https://github.com/mage2pro/core/blob/2.0.36/Payment/view/frontend/web/withOptions.js?ts=4#L55
,'options' => $o->o(true)
] + parent::config();
}
}

0 comments on commit ca73f54

Please sign in to comment.