[TASK] Change PHP namespace of EXT:jumpurl to FoT3 23/44323/2
authorBenjamin Mack <benni@typo3.org>
Wed, 28 Oct 2015 06:31:05 +0000 (07:31 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 28 Oct 2015 10:37:02 +0000 (11:37 +0100)
Change the PHP namespace and the according
composer.json information to FoT3 in preparation
of removing the extension from the Core.

Resolves: #71083
Releases: master
Change-Id: Ifd1018f36f6c7114c3f32ef293097e0c0cac1156
Reviewed-on: https://review.typo3.org/44323
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
composer.json
typo3/sysext/jumpurl/Classes/JumpUrlHandler.php
typo3/sysext/jumpurl/Classes/JumpUrlProcessor.php
typo3/sysext/jumpurl/Classes/JumpUrlUtility.php
typo3/sysext/jumpurl/Tests/Unit/ContentObjectRendererTest.php
typo3/sysext/jumpurl/Tests/Unit/JumpUrlHandlerTest.php
typo3/sysext/jumpurl/Tests/Unit/JumpUrlProcessorMock.php
typo3/sysext/jumpurl/Tests/Unit/JumpUrlProcessorTest.php
typo3/sysext/jumpurl/composer.json
typo3/sysext/jumpurl/ext_emconf.php
typo3/sysext/jumpurl/ext_localconf.php

index e423d96..39d4ba7 100644 (file)
                        "TYPO3\\CMS\\Info\\": "typo3/sysext/info/Classes/",
                        "TYPO3\\CMS\\InfoPagetsconfig\\": "typo3/sysext/info_pagetsconfig/Classes/",
                        "TYPO3\\CMS\\Install\\": "typo3/sysext/install/Classes/",
-                       "TYPO3\\CMS\\Jumpurl\\": "typo3/sysext/jumpurl/Classes/",
+                       "FoT3\\Jumpurl\\": "typo3/sysext/jumpurl/Classes/",
                        "TYPO3\\CMS\\Lang\\": "typo3/sysext/lang/Classes/",
                        "TYPO3\\CMS\\Linkvalidator\\": "typo3/sysext/linkvalidator/Classes/",
                        "TYPO3\\CMS\\Lowlevel\\": "typo3/sysext/lowlevel/Classes/",
                        "TYPO3\\CMS\\Impexp\\Tests\\": "typo3/sysext/impexp/Tests/",
                        "TYPO3\\CMS\\IndexedSearch\\Tests\\": "typo3/sysext/indexed_search/Tests/",
                        "TYPO3\\CMS\\Install\\Tests\\": "typo3/sysext/install/Tests/",
-                       "TYPO3\\CMS\\Jumpurl\\Tests\\": "typo3/sysext/jumpurl/Tests/",
+                       "FoT3\\Jumpurl\\Tests\\": "typo3/sysext/jumpurl/Tests/",
                        "TYPO3\\CMS\\Lang\\Tests\\": "typo3/sysext/lang/Tests/",
                        "TYPO3\\CMS\\Lowlevel\\Tests\\": "typo3/sysext/lowlevel/Tests/",
                        "TYPO3\\CMS\\Mediace\\": "typo3/sysext/mediace/Classes/",
index 9466a4b..e3a78c9 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-namespace TYPO3\CMS\Jumpurl;
+namespace FoT3\Jumpurl;
 
 /*
  * This file is part of the TYPO3 CMS project.
index ac8b403..fa3df5a 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-namespace TYPO3\CMS\Jumpurl;
+namespace FoT3\Jumpurl;
 
 /*
  * This file is part of the TYPO3 CMS project.
index cb36cbf..7ffe606 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-namespace TYPO3\CMS\Jumpurl;
+namespace FoT3\Jumpurl;
 
 /*
  * This file is part of the TYPO3 CMS project.
index 557a02b..bb0bcc4 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-namespace TYPO3\CMS\Jumpurl\Tests\Unit;
+namespace FoT3\Jumpurl\Tests\Unit;
 
 /*
  * This file is part of the TYPO3 CMS project.
@@ -24,8 +24,8 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
 use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController;
 use TYPO3\CMS\Frontend\Page\PageRepository;
-use TYPO3\CMS\Jumpurl\JumpUrlHandler;
-use TYPO3\CMS\Jumpurl\JumpUrlProcessor;
+use FoT3\Jumpurl\JumpUrlHandler;
+use FoT3\Jumpurl\JumpUrlProcessor;
 
 /**
  * Testcase for the jumpurl processing in TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer.
index a59ee19..31ae4c0 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-namespace TYPO3\CMS\Jumpurl\Tests\Unit;
+namespace FoT3\Jumpurl\Tests\Unit;
 
 /*
  * This file is part of the TYPO3 CMS project.
@@ -20,7 +20,7 @@ use TYPO3\CMS\Core\Resource\ResourceFactory;
 use TYPO3\CMS\Core\Utility\HttpUtility;
 use TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication;
 use TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController;
-use TYPO3\CMS\Jumpurl\JumpUrlHandler;
+use FoT3\Jumpurl\JumpUrlHandler;
 
 /**
  * Testcase for handling jump URLs when given with a test parameter
@@ -334,7 +334,7 @@ class JumpUrlHandlerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
             ->will($this->returnValue(true));
 
 
-        $hash = \TYPO3\CMS\Jumpurl\JumpUrlUtility::calculateHashSecure($path, '', '');
+        $hash = \FoT3\Jumpurl\JumpUrlUtility::calculateHashSecure($path, '', '');
 
         $_GET['jumpurl'] = $path;
         $_GET['juSecure'] = '1';
index 31f4a53..f352367 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-namespace TYPO3\CMS\Jumpurl\Tests\Unit;
+namespace FoT3\Jumpurl\Tests\Unit;
 
 /*
  * This file is part of the TYPO3 CMS project.
@@ -14,7 +14,7 @@ namespace TYPO3\CMS\Jumpurl\Tests\Unit;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Jumpurl\JumpUrlProcessor;
+use FoT3\Jumpurl\JumpUrlProcessor;
 
 /**
  * Testcase for handling jump URLs when given with a test parameter
index a087091..51c49dc 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-namespace TYPO3\CMS\Jumpurl\Tests\Unit;
+namespace FoT3\Jumpurl\Tests\Unit;
 
 /*
  * This file is part of the TYPO3 CMS project.
index 9089de7..3fe4118 100644 (file)
@@ -1,24 +1,25 @@
 {
-       "name": "typo3/cms-jumpurl",
+       "name": "friendsoftypo3/jumpurl",
        "type": "typo3-cms-extension",
        "description": "TYPO3 Jump URL handling",
        "homepage": "https://typo3.org",
        "license": ["GPL-2.0+"],
 
        "require": {
-               "typo3/cms-core": "*"
+               "typo3/cms-core": "~7.5",
+               "typo3/cms-frontend": "~7.5"
        },
        "replace": {
                "jumpurl": "*"
        },
        "autoload": {
                "psr-4": {
-                       "TYPO3\\CMS\\Jumpurl\\": "Classes/"
+                       "FoT3\\Jumpurl\\": "Classes/"
                }
        },
        "autoload-dev": {
                "psr-4": {
-                       "TYPO3\\CMS\\Jumpurl\\Tests\\": "Tests/"
+                       "FoT3\\Jumpurl\\Tests\\": "Tests/"
                }
        }
 }
index f53012d..ed93ee7 100644 (file)
@@ -3,8 +3,8 @@ $EM_CONF[$_EXTKEY] = array(
     'title' => 'JumpURL',
     'description' => 'Allows to modify links to create Jump URLs created in the frontend of the TYPO3 Core.',
     'category' => 'fe',
-    'author' => 'TYPO3 CMS Team',
-    'author_email' => 'info@typo3.org',
+    'author' => 'Friends of TYPO3',
+    'author_email' => 'friendsof@typo3.org',
     'state' => 'stable',
     'uploadfolder' => 0,
     'createDirs' => '',
@@ -13,7 +13,7 @@ $EM_CONF[$_EXTKEY] = array(
     'version' => '7.6.0',
     'constraints' => array(
         'depends' => array(
-            'typo3' => '7.6.0-7.6.99',
+            'typo3' => '7.6.0-7.99.99',
         ),
         'conflicts' => array(),
         'suggests' => array(),
index 38423df..c610e05 100644 (file)
@@ -2,9 +2,9 @@
 defined('TYPO3_MODE') or die();
 
 // Register hooks
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['urlProcessing']['urlProcessors']['jumpurl']['processor'] = \TYPO3\CMS\Jumpurl\JumpUrlProcessor::class;
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['urlProcessing']['urlProcessors']['jumpurl']['processor'] = \FoT3\Jumpurl\JumpUrlProcessor::class;
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['urlProcessing']['urlHandlers']['jumpurl'] = [
-    'handler' => \TYPO3\CMS\Jumpurl\JumpUrlHandler::class,
+    'handler' => \FoT3\Jumpurl\JumpUrlHandler::class,
     'before' => [
         'frontendExternalUrl'
     ],