Deprecation: #98479 - Deprecated file reference related functionality
See forge#98479
Description
With the introduction of the new TCA type
file
, a couple of cross
dependencies have been deprecated, mainly related to FormEngine.
The
User
class has been deprecated, since it was
only used for generating the inline label for file references in TCA type
inline
. This is now handled by the new TCA type
file
directly.
The
File
method, which was
previously used as
[filter]
to filter the available
file extensions in FormEngine as well as
Data
has been
deprecated. This is now done internally.
The
Extension
method, which
was usually used to simplify configuration of FAL fields in TCA has been
deprecated as well, since the applied configuration is now handled internally.
Impact
Instantiating the
User
class, as well as
calling the
File
and
Extension
methods will
trigger a PHP
E_
level error. The extension scanner
also reports any usage.
Affected installations
All installations with extensions using the
User
class or one of the mentioned methods.
Migration
Remove any usage of the
User
class. There is no
migration available, since this FAL specific functionality is now handled
internally.
Replace any usage of
File
with
File
. However, usage of this method in custom
extension code should usually not be necessary.
Replace any usage of
Extension
by directly using the new TCA type file.