Skip to content
Snippets Groups Projects
Commit 2b5a88a3 authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Stefan Bürk
Browse files

[TASK] Deprecate instantiation of IconRegistry in ext_localconf.php

Nowadays, it is not needed anymore to manually call IconRegistry
to register icons. Since TYPO3 v11 we have the Configuration/Icons.php
file, which should be enough for most use cases.

This deprecation gives extension authors incentive to clean their
ext_localconf.php files.

Some background: This has become problematic with Content Blocks, as
it uses service provider extension method to dynamically register icons.
However, when other extensions instantiate IconRegistry in
ext_localconf.php the WHOLE Content Blocks compiling is triggered at an
early stage of bootstrapping, when TCA is not even available yet. This
does not work and forces us to use a less clean method by listening to
the BootstrapComplete event.

Resolves: #104778
Related: #94692
Releases: main
Change-Id: I8ee6d80e8979f506cd076236c577302e323af77a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85662


Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarSimon Praetorius <simon@praetorius.me>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarSimon Praetorius <simon@praetorius.me>
Reviewed-by: default avatarTorben Hansen <derhansen@gmail.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarTorben Hansen <derhansen@gmail.com>
parent 4d1aaebf
Branches
Tags
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