Skip to content

Commit 0d00c69

Browse files
authored
Merge pull request #548 from magento-performance/ACPT-1363
ACPT-1363: Fix Directory WebApi GraphQL tests on Application Server
2 parents d7512e3 + a8cd39f commit 0d00c69

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/code/Magento/Directory/Model/Currency.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Magento\Framework\Locale\Currency as LocaleCurrency;
1414
use Magento\Framework\Locale\ResolverInterface as LocalResolverInterface;
1515
use Magento\Framework\NumberFormatterFactory;
16+
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
1617
use Magento\Framework\Serialize\Serializer\Json;
1718

1819
/**
@@ -23,7 +24,7 @@
2324
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2425
* @since 100.0.2
2526
*/
26-
class Currency extends \Magento\Framework\Model\AbstractModel
27+
class Currency extends \Magento\Framework\Model\AbstractModel implements ResetAfterRequestInterface
2728
{
2829
/**
2930
* CONFIG path constants
@@ -590,4 +591,12 @@ private function trimUnicodeDirectionMark($string)
590591
}
591592
return $string;
592593
}
594+
595+
/**
596+
* @inheritDoc
597+
*/
598+
public function _resetState(): void
599+
{
600+
$this->_rates = null;
601+
}
593602
}

0 commit comments

Comments
 (0)