[TASK] Remove renamed language command controller 33/28433/2
authorErnesto Baschny <ernst@cron-it.de>
Sun, 16 Mar 2014 00:31:32 +0000 (01:31 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Sun, 16 Mar 2014 09:13:52 +0000 (10:13 +0100)
Follow-up to 0d69c2d9e7b89ea63522d0b5e54aadf20ec1245d.

The renamed language command controller (language:update) was introduced
in 6.2, so we can simply remove the original name instead of deprecating
it.

This will only affect installations which are already using this task
since 6.2 alpha2.

Resolves: #54128
Releases: 6.2
Change-Id: Id6bb709bd30c9044c949c431aa2a595c1035c601
Reviewed-on: https://review.typo3.org/28433
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/lang/Classes/Command/UpdateCommandController.php [deleted file]
typo3/sysext/lang/ext_localconf.php

diff --git a/typo3/sysext/lang/Classes/Command/UpdateCommandController.php b/typo3/sysext/lang/Classes/Command/UpdateCommandController.php
deleted file mode 100644 (file)
index aadb7ee..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-namespace TYPO3\CMS\Lang\Command;
-
-/***************************************************************
- *  Copyright notice
- *
- *  (c) 2013 Wouter Wolters <typo3@wouterwolters.nl>
- *  All rights reserved
- *
- *  This script is part of the TYPO3 project. The TYPO3 project is
- *  free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  The GNU General Public License can be found at
- *  http://www.gnu.org/copyleft/gpl.html.
- *
- *  This script is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  This copyright notice MUST APPEAR in all copies of the script!
- ***************************************************************/
-
-/**
- * Update languages translation command
- */
-class UpdateCommandController extends \TYPO3\CMS\Extbase\Mvc\Controller\CommandController {
-
-       /**
-        * Update language file for each extension
-        *
-        * @param string $localesToUpdate Comma separated list of locales that needs to be updated
-        * @return void
-        * @deprecated Use LanguageCommandController (language:update) instead. will be removed two versions after 6.2
-        */
-       public function updateCommand($localesToUpdate = '') {
-               \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
-               $this->outputLine('Calling update:update is deprecated since 6.2, use language:update instead');
-               $languageCommandController = $this->objectManager->get('TYPO3\\CMS\\Lang\\Command\\LanguageCommandController');
-               $languageCommandController->updateCommand($localesToUpdate);
-       }
-}
index fc99b33..0963015 100644 (file)
@@ -4,8 +4,4 @@ if (!defined('TYPO3_MODE')) {
 }
 
 // Register language update command controller
-// @deprecated since TYPO3 CMS 6.2 will be removed in 2 versions
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'TYPO3\\CMS\\Lang\\Command\\UpdateCommandController';
-
-// Register language update command controller
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'TYPO3\\CMS\\Lang\\Command\\LanguageCommandController';