b2binpay /
magento2
| 1 | <?php |
||
| 2 | |||
| 3 | namespace B2Binpay\Payment\Model\Ui; |
||
| 4 | |||
| 5 | use Magento\Checkout\Model\ConfigProviderInterface; |
||
|
0 ignored issues
–
show
|
|||
| 6 | use B2Binpay\Payment\Gateway\Config\Config; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Class ConfigProvider |
||
| 10 | */ |
||
| 11 | final class ConfigProvider implements ConfigProviderInterface |
||
| 12 | { |
||
| 13 | const CODE = 'b2binpay'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var Config |
||
| 17 | */ |
||
| 18 | private $config; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param Config $config |
||
| 22 | */ |
||
| 23 | public function __construct( |
||
| 24 | Config $config |
||
| 25 | ) { |
||
| 26 | $this->config = $config; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Retrieve assoc array of checkout configuration |
||
| 31 | * |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | public function getConfig() |
||
| 35 | { |
||
| 36 | $wallets = json_decode($this->config->getValue('wallets'), true); |
||
| 37 | |||
| 38 | return [ |
||
| 39 | 'payment' => [ |
||
| 40 | self::CODE => [ |
||
| 41 | 'currencyCodes' => $wallets |
||
| 42 | ] |
||
| 43 | ] |
||
| 44 | ]; |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths