---
title: "Breaking: #505 - Replace ParserUtility::parseTax by DI"
manual: "Cart"
version: "12.1"
permalink: "https://docs.typo3.org/permalink/extcode/cart:breaking-505-replace-parserutility-parsetax-by-di@12.1"
source: "Changelog/9.0/Breaking-505-ReplaceParserUtilityParseTaxByDI.rst"
rendered: "2026-11-14T23:50:30+00:00"
---

# Breaking: #505 - Replace ParserUtility::parseTax by DI {#breaking-505-replace-parserutility-parsetax-by-di}

See [Issue 480](https://github.com/extcode/cart/issues/480)

## Description {#description}

The existing `ExtcodeCartUtilityParserUtility::parseTax()` uses a TaxClassService
which could be configured by a TypoScript Configuration. The change remove the
method from the class and injecting the `ExtcodeCartServiceTaxClassServiceInterface`
by Dependency Injection.

## Affected Installations {#affected-installations}

All installations where `plugin.tx_cart.taxClasses.className` is used to replace
the default TaxClassService.

## Migration {#migration}

Remove the old configuration from TypoScript.
Add an entry to your `Services.yaml` or `Services.php` and configure your
implementation of the `ExtcodeCartServiceTaxClassServiceInterface` for the
`$taxClassService` constructor argument.
