[!!!][TASK] Remove deprecated code from TableController
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / 9.5 / Deprecation-86270-ExtbaseXclassViaTypoScriptSettings.rst
1 .. include:: ../../Includes.txt
2
3 ==============================================================================
4 Deprecation: #86270 - config.tx_extbase.objects and plugin.tx_%plugin%.objects
5 ==============================================================================
6
7 See :issue:`86270`
8
9 Description
10 ===========
11
12 The :typoscript:`config.tx_extbase.objects` and :typoscript:`plugin.tx_%plugin%.objects` configuration options
13 have been marked as deprecated.
14
15
16 Impact
17 ======
18
19 Configuring class overrides using :typoscript:`config.tx_extbase.objects` or :typoscript:`plugin.tx_%plugin%.objects`
20 will trigger a PHP :php:`E_USER_DEPRECATED` error.
21
22
23 Affected Installations
24 ======================
25
26 All installations that make use of the TypoScript :typoscript:`config.tx_extbase.objects` or :typoscript:`plugin.tx_%plugin%.objects`
27 configuration options are affected.
28
29
30 Migration
31 =========
32
33 Use XCLASSes configured in :file:`ext_localconf.php` using
34 :php:`$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']`.
35
36 Register implementations in the Extbase object container instead if you need to override classes
37 that are processed by the :php:`PropertyMapper` like domain models or if you rely on additional
38 injections:
39
40 .. code-block:: php
41
42 GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Object\Container\Container::class)
43 ->registerImplementation(Base::class, Override::class);
44
45 If you conditionally configured :typoscript:`config.tx_extbase.objects` or
46 :typoscript:`plugin.tx_%plugin%.objects`, then move that conditional logic into the
47 overriding class itself.
48
49 .. index:: TypoScript, NotScanned, ext:extbase