[BUGFIX] Do not use deprecated class alias anymore 03/58103/2
authorBenni Mack <benni@typo3.org>
Fri, 31 Aug 2018 12:51:05 +0000 (14:51 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 31 Aug 2018 17:47:27 +0000 (19:47 +0200)
The class TYPO3\CMS\Lang\LanguageService is gone,
and only exists as class alias.

There are a few places where this class is still
used, and they are replaced.

Resolves: #86064
Releases: master
Change-Id: Ie6a9db14d3db9e3949a04f6ec146a006d792ae9f
Reviewed-on: https://review.typo3.org/58103
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/fluid/Classes/ViewHelpers/Be/Labels/CshViewHelper.php
typo3/sysext/form/Classes/Hooks/DataStructureIdentifierHook.php

index 2d0ee8d..1276b8a 100644 (file)
@@ -15,8 +15,8 @@ namespace TYPO3\CMS\Fluid\ViewHelpers\Be\Labels;
  */
 
 use TYPO3\CMS\Backend\Utility\BackendUtility;
+use TYPO3\CMS\Core\Localization\LanguageService;
 use TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper;
-use TYPO3\CMS\Lang\LanguageService;
 use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
 
 /**
index 9feb6c7..d30a115 100644 (file)
@@ -15,6 +15,7 @@ namespace TYPO3\CMS\Form\Hooks;
  * The TYPO3 project - inspiring people to share!
  */
 
+use TYPO3\CMS\Core\Localization\LanguageService;
 use TYPO3\CMS\Core\Messaging\AbstractMessage;
 use TYPO3\CMS\Core\Messaging\FlashMessage;
 use TYPO3\CMS\Core\Messaging\FlashMessageService;
@@ -27,7 +28,6 @@ use TYPO3\CMS\Form\Mvc\Configuration\Exception\NoSuchFileException;
 use TYPO3\CMS\Form\Mvc\Configuration\Exception\ParseErrorException;
 use TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManagerInterface;
 use TYPO3\CMS\Form\Service\TranslationService;
-use TYPO3\CMS\Lang\LanguageService;
 
 /**
  * Hooks into flex form handling of backend for tt_content form elements: