Skip to content

Commit

Permalink
Merge pull request #548 from magento-performance/ACPT-1363
Browse files Browse the repository at this point in the history
ACPT-1363: Fix Directory WebApi GraphQL tests on Application Server
  • Loading branch information
andimov authored Jun 5, 2023
2 parents d7512e3 + a8cd39f commit 0d00c69
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/code/Magento/Directory/Model/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Magento\Framework\Locale\Currency as LocaleCurrency;
use Magento\Framework\Locale\ResolverInterface as LocalResolverInterface;
use Magento\Framework\NumberFormatterFactory;
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
use Magento\Framework\Serialize\Serializer\Json;

/**
Expand All @@ -23,7 +24,7 @@
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @since 100.0.2
*/
class Currency extends \Magento\Framework\Model\AbstractModel
class Currency extends \Magento\Framework\Model\AbstractModel implements ResetAfterRequestInterface
{
/**
* CONFIG path constants
Expand Down Expand Up @@ -590,4 +591,12 @@ private function trimUnicodeDirectionMark($string)
}
return $string;
}

/**
* @inheritDoc
*/
public function _resetState(): void
{
$this->_rates = null;
}
}

0 comments on commit 0d00c69

Please sign in to comment.