#84244Adding custom Restrictions to RestrictionContainer
Description
I tried to use the “new” way to handle Restrictions with doctrine-dbal/TYPO3.
When I create a custom Restriction by using QueryRestrictionInterface, I want to add this one to, e.g. the FrontendRestrictionContainer. My restriction should be used, when pages and content elements are rendered. Currently the FrontendRestrictionContainer is created/added by using GeneralUtility::makeInstance(FrontendRestrictionContainer::class). To change the default set of restriction for every core related query, I have to create a XCLASS of FrontendRestrictionContainer.
It would be great, if a nicer and cleaner solution would be availbale to extend this.