Issue Bug Closed

#100807Analyze Database Structure fails with EnforceableQueryRestriction and constructor dependencies

Nicole Hummel 05/04/23, 10:34 updated 04/21/26, 11:30

Description

Given:

- an own class implementing the QueryRestrictionInterface and EnforceableQueryRestrictionInterface using a constructor dependency to another class
- this class is marked as public in settings.yaml
- this class is registered in $GLOBALS[‘TYPO3_CONF_VARS’][‘DB’][‘additionalQueryRestrictions’]

Expectation:

- calling “Analyze Database Structure” in maintenance module should compare the current database structure with expected on

Actual:

- an error occurs as the (constructor) dependency cannot be resolved
- the failsafe container instead of the symfony dependency container is used

Reviews 2