We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 5ad22740 authored by Rik ter Beek's avatar Rik ter Beek

#66 Use findSource instead of deprecated findRelativeSourceFilePath method

parent ba223c70
......@@ -809,13 +809,4 @@ class Data extends AbstractHelper
return $this->_assetRepo->createAsset($fileId, $params);
}
/**
* @param $asset
* @return bool|string
*/
public function findRelativeSourceFilePath($asset)
{
return $this->_assetSource->findRelativeSourceFilePath($asset);
}
}
\ No newline at end of file
......@@ -217,7 +217,7 @@ class PaymentMethods extends AbstractHelper
$asset = $this->_assetRepo->createAsset('Adyen_Payment::images/logos/' .
$paymentMethodCode . '.png', $params);
$placeholder = $this->_adyenHelper->findRelativeSourceFilePath($asset);
$placeholder = $this->_assetSource->findSource($asset);
$icon = null;
if ($placeholder) {
......
......@@ -197,7 +197,7 @@ class AdyenCcConfigProvider implements ConfigProviderInterface
foreach (array_keys($types) as $code) {
if (!array_key_exists($code, $icons)) {
$asset = $this->ccConfig->createAsset('Magento_Payment::images/cc/' . strtolower($code) . '.png');
$placeholder = $this->_assetSource->findRelativeSourceFilePath($asset);
$placeholder = $this->_assetSource->findSource($asset);
if ($placeholder) {
list($width, $height) = getimagesize($asset->getSourceFile());
$icons[$code] = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment