[TASK] Streamline deprecation handling in icon API 29/55829/3
authorOliver Hader <oliver@typo3.org>
Tue, 20 Feb 2018 15:44:25 +0000 (16:44 +0100)
committerFrank Naegler <frank.naegler@typo3.org>
Tue, 20 Feb 2018 22:17:55 +0000 (23:17 +0100)
commitffd75102e9bd1a9d662520fe3cf378bd205c1312
tree84406e04ca5e30d2aca7b7eb7a0e0bca54cb612c
parent859a46009e86b85610bd8ae809c5d868fd118884
[TASK] Streamline deprecation handling in icon API

Icon API supports some basic handling of deprecated icons
as well as keeping track of replacements. However, it is
not possible to automatically benefit from these
replacements in case they are defined.

This change tackles the following:

* bug when logging deprecated icon identifiers due to
  mismatching sprintf arguments
* automatically making use of available replacements
  instead of throwing exception
* possibility to retrieve deprecated icons and
  replacements (in order to render them in ext:styleguide)

Resolves: #83978
Releases: master
Change-Id: I7faceebc30cca0cd1f392b4845d85ac2e5bf7307
Reviewed-on: https://review.typo3.org/55829
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/Imaging/IconFactory.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php