[TASK] Make CharsetConverter (csConv) a singleton 77/45377/2
authorBenni Mack <benni@typo3.org>
Sat, 19 Dec 2015 20:43:26 +0000 (21:43 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Mon, 21 Dec 2015 18:32:13 +0000 (19:32 +0100)
The CharsetConverter is agnostic to the surroundings,
so it can be simply be instantiated once with a Singleton
at any time.

Resolves: #72335
Releases: master
Change-Id: I1989480c56c2db8f015501ae9f82ae8f2384ea13
Reviewed-on: https://review.typo3.org/45377
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Charset/CharsetConverter.php

index 9aaae41..01d8056 100644 (file)
@@ -15,6 +15,7 @@ namespace TYPO3\CMS\Core\Charset;
  */
 
 use TYPO3\CMS\Core\Localization\Locales;
+use TYPO3\CMS\Core\SingletonInterface;
 use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 
@@ -50,7 +51,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
 /**
  * Class for conversion between charsets
  */
-class CharsetConverter
+class CharsetConverter implements SingletonInterface
 {
 
     /**