Log in
Model

TaxRuleRegistry

Magento\Tax\Model\Calculation\TaxRuleRegistry

What it does

This class acts as a registry (cache) for tax rule models, storing them in memory to avoid repeated database queries.

Developers use this when they need to frequently access the same tax rules within a single request, as it provides efficient retrieval through registerTaxRule(), retrieveTaxRule(), and removeTaxRule() methods.

Public Methods

  • registerTaxRule()
  • retrieveTaxRule()
  • removeTaxRule()