Actions
Feature #84244
closedAdding custom Restrictions to RestrictionContainer
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2018-03-13
Due date:
% Done:
100%
Estimated time:
PHP Version:
7.2
Tags:
Complexity:
Sprint Focus:
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.
Actions