Skip to content
Snippets Groups Projects
Commit 4ba55050 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[TASK] Extend RecordInterface

The RecordInterface is extended to require
implementations to implement the `getRawRecord()`
and `getSystemProperties()` methods as well
as the PSR-11 `ContainerInterface`.

This allows to change RecordFactory's `createRecord()`
method to return the interface instead of the
`Record` object. This will come in handy e.g.
for the already existing `Page` object, which
can now be used without extending `Record`.

By using the `ContainerInterface` we allow
access to the record and its properties via
the has() and get() methods, which is supported
since Fluid 4.0: https://github.com/TYPO3/Fluid/issues/1001.

Resolves: #104859
Releases: main
Change-Id: Ib8d20dc4eea343bf1c2160dbab6d4301930792ee
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85925


Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
parent f9d64b00
Branches
Tags
No related merge requests found
Showing
with 449 additions and 291 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment