TYPO3 v15 dev-main snapshot ()
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
.. include:: /Includes.rst.txt
|
||||
|
||||
.. _feature-96659:
|
||||
|
||||
======================================================================
|
||||
Feature: #96659 - ContentObject Registration via service configuration
|
||||
======================================================================
|
||||
|
||||
See :issue:`96659`
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
ContentObjects such as `TEXT` or `COA` for rendering content blocks in TYPO3
|
||||
Frontend via TypoScript are now registered via the service configuration.
|
||||
|
||||
This way registration is done during build-time and not on every TYPO3 request
|
||||
and dependency injection can be used in ContentObjects.
|
||||
|
||||
The registration was previously done in an extension's :file:`ext_localconf.php`
|
||||
via :php:`$GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects']`.
|
||||
|
||||
Impact
|
||||
======
|
||||
|
||||
Registering a custom ContentObject is now done in an extension's
|
||||
:file:`Configuration/Services.yaml`:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
MyCompany\MyPackage\ContentObject\CustomContentObject:
|
||||
tags:
|
||||
- name: frontend.contentobject
|
||||
identifier: 'MY_OBJ'
|
||||
|
||||
.. index:: Frontend, ext:frontend
|
||||
Reference in New Issue
Block a user