Project

General

Profile

Actions

Feature #84244

closed

Adding custom Restrictions to RestrictionContainer

Added by Josua Vogel over 6 years ago. Updated about 6 years ago.

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.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Feature #84493: Replace enableFields with QueryRestrictionAccepted2018-03-20

Actions
Actions

Also available in: Atom PDF