[TASK] Dissolve PersistenceDelegate for persisted mappers
The intention of PersistenceDelegate was to provide a generic API to resolve or generate route components. However the implementation did not provide any additional behavior. It just was used as structural pattern which did not provide any further advantages. That's the reason why PersistenceDelegate gets dissolved and its database connection invocation is moved to its corresponding callers PersistedAliasMapper and PersistedPatternMapper. For backward-compatibility reasons previous (protected) implementation is still kept in legacy layer for those two route aspects. Resolves: #90218 Releases: master, 9.5 Change-Id: I49eb58372c139c9b8274593efa2892a43eb81508 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63049 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Benni Mack <benni@typo3.org> Tested-by:
Susanne Moog <look@susi.dev> Reviewed-by:
Benni Mack <benni@typo3.org> Reviewed-by: Johannes Schlier Reviewed-by:
Susanne Moog <look@sus...>
Showing
- typo3/sysext/core/Classes/Routing/Aspect/DelegateInterface.php 2 additions, 0 deletions.../sysext/core/Classes/Routing/Aspect/DelegateInterface.php
- typo3/sysext/core/Classes/Routing/Aspect/PersistedAliasMapper.php 40 additions, 57 deletions...sext/core/Classes/Routing/Aspect/PersistedAliasMapper.php
- typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php 34 additions, 44 deletions...xt/core/Classes/Routing/Aspect/PersistedPatternMapper.php
- typo3/sysext/core/Classes/Routing/Aspect/PersistenceDelegate.php 2 additions, 0 deletions...ysext/core/Classes/Routing/Aspect/PersistenceDelegate.php
- typo3/sysext/core/Classes/Routing/Legacy/PersistedAliasMapperLegacyTrait.php 70 additions, 0 deletions...lasses/Routing/Legacy/PersistedAliasMapperLegacyTrait.php
- typo3/sysext/core/Classes/Routing/Legacy/PersistedPatternMapperLegacyTrait.php 93 additions, 0 deletions...sses/Routing/Legacy/PersistedPatternMapperLegacyTrait.php
Please register or sign in to comment