Feature: #99055 - BackendController service tag attribute
See forge#99055
Description
A new PHP attribute \TYPO3\
has
been added in order to register services to the BackendController dependency
injection container.
Note
In early TYPO3 v12 versions the attribute was named #
and
has later been renamed to #
. Both work with TYPO3 v12,
but developers should use #
for upwards compatibility
since #
has been deprecated with TYPO3 v13.
In addition to tag backend.
in the Services.
file,
tagging services as backend controller can be done like:
Example implementation
use TYPO3\CMS\Backend\Attribute\AsController;
#[AsController]
class MyBackendController {
}
Impact
It is now possible to tag services as backend controller by the PHP attribute
\TYPO3\
instead of tagging them with
backend.
in the Services.
file.