[TASK] Use name-resolution instead of strings where possible: 16 72/34872/3
authorStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 1 Dec 2014 13:23:30 +0000 (14:23 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 3 Dec 2014 19:08:00 +0000 (20:08 +0100)
(part for extensions starting with "d" to "v")

Use name-resolution with ...::class instead of strings where
possible.
(needs PHP 5.5, which is meanwhile required for master)

Change-set Iedbb896607adddce2b23ab67f990fa2296c0d1bb
first introduced usage of ::class in master. We now add it
in various more places.

Change-Id: Idd4dbb32c5e7be1fc566a65cb729a684de003056
Resolves: #63477
Releases: master
Reviewed-on: http://review.typo3.org/34872
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
20 files changed:
typo3/sysext/dbal/Tests/Unit/Database/AbstractTestCase.php
typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionOracleTest.php
typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionTest.php
typo3/sysext/dbal/Tests/Unit/Database/SqlParserTest.php
typo3/sysext/dbal/ext_localconf.php
typo3/sysext/documentation/ext_localconf.php
typo3/sysext/feedit/ext_localconf.php
typo3/sysext/felogin/Tests/Unit/Controller/FrontendLoginControllerTest.php
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/func_wizards/ext_tables.php
typo3/sysext/impexp/ext_tables.php
typo3/sysext/indexed_search/Tests/Unit/IndexerTest.php
typo3/sysext/indexed_search/ext_tables.php
typo3/sysext/info_pagetsconfig/ext_tables.php
typo3/sysext/linkvalidator/ext_localconf.php
typo3/sysext/linkvalidator/ext_tables.php
typo3/sysext/opendocs/ext_tables.php
typo3/sysext/openid/ext_localconf.php
typo3/sysext/openid/ext_tables.php
typo3/sysext/version/ext_tables.php

index 9da85f2..387819d 100644 (file)
@@ -34,21 +34,21 @@ abstract class AbstractTestCase extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        protected function prepareSubject($driver, array $configuration) {
                /** @var \TYPO3\CMS\Dbal\Database\DatabaseConnection|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface $subject */
-               $subject = $this->getAccessibleMock('TYPO3\\CMS\\Dbal\\Database\\DatabaseConnection', array('getFieldInfoCache'), array(), '', FALSE);
+               $subject = $this->getAccessibleMock(\TYPO3\CMS\Dbal\Database\DatabaseConnection::class, array('getFieldInfoCache'), array(), '', FALSE);
 
                $subject->conf = $configuration;
 
                // Disable caching
-               $mockCacheFrontend = $this->getMock('TYPO3\\CMS\\Core\\Cache\\Frontend\\PhpFrontend', array(), array(), '', FALSE);
+               $mockCacheFrontend = $this->getMock(\TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class, array(), array(), '', FALSE);
                $subject->expects($this->any())->method('getFieldInfoCache')->will($this->returnValue($mockCacheFrontend));
 
                // Inject SqlParser - Its logic is tested with the tests, too.
-               $sqlParser = $this->getAccessibleMock('TYPO3\\CMS\\Dbal\\Database\\SqlParser', array('dummy'), array(), '', FALSE);
+               $sqlParser = $this->getAccessibleMock(\TYPO3\CMS\Dbal\Database\SqlParser::class, array('dummy'), array(), '', FALSE);
                $sqlParser->_set('databaseConnection', $subject);
                $subject->SQLparser = $sqlParser;
 
                // Mock away schema migration service from install tool
-               $installerSqlMock = $this->getMock('TYPO3\\CMS\\Install\\Service\\SqlSchemaMigrationService', array('getFieldDefinitions_fileContent'), array(), '', FALSE);
+               $installerSqlMock = $this->getMock(\TYPO3\CMS\Install\Service\SqlSchemaMigrationService::class, array('getFieldDefinitions_fileContent'), array(), '', FALSE);
                $installerSqlMock->expects($this->any())->method('getFieldDefinitions_fileContent')->will($this->returnValue(array()));
                $subject->_set('installerSql', $installerSqlMock);
 
index b22e22e..cf15a6d 100644 (file)
@@ -916,7 +916,7 @@ class DatabaseConnectionOracleTest extends AbstractTestCase {
        public function expressionListWithNotInIsConcatenatedWithAnd() {
                $listMaxExpressions = 1000;
 
-               $mockSpecificsOci8 = $this->getAccessibleMock('TYPO3\\CMS\\Dbal\\Database\\Specifics\\Oci8', array(), array(), '', FALSE);
+               $mockSpecificsOci8 = $this->getAccessibleMock(\TYPO3\CMS\Dbal\Database\Specifics\Oci8::class, array(), array(), '', FALSE);
                $mockSpecificsOci8->expects($this->any())->method('getSpecific')->will($this->returnValue($listMaxExpressions));
 
                $items = range(0, 1250);
@@ -947,7 +947,7 @@ class DatabaseConnectionOracleTest extends AbstractTestCase {
        public function expressionListWithInIsConcatenatedWithOr() {
                $listMaxExpressions = 1000;
 
-               $mockSpecificsOci8 = $this->getAccessibleMock('TYPO3\\CMS\\Dbal\\Database\\Specifics\\Oci8', array(), array(), '', FALSE);
+               $mockSpecificsOci8 = $this->getAccessibleMock(\TYPO3\CMS\Dbal\Database\Specifics\Oci8::class, array(), array(), '', FALSE);
                $mockSpecificsOci8->expects($this->any())->method('getSpecific')->will($this->returnValue($listMaxExpressions));
 
                $items = range(0, 1250);
@@ -978,7 +978,7 @@ class DatabaseConnectionOracleTest extends AbstractTestCase {
        public function expressionListIsUnchanged() {
                $listMaxExpressions = 1000;
 
-               $mockSpecificsOci8 = $this->getAccessibleMock('TYPO3\\CMS\\Dbal\\Database\\Specifics\\Oci8', array(), array(), '', FALSE);
+               $mockSpecificsOci8 = $this->getAccessibleMock(\TYPO3\CMS\Dbal\Database\Specifics\Oci8::class, array(), array(), '', FALSE);
                $mockSpecificsOci8->expects($this->any())->method('getSpecific')->will($this->returnValue($listMaxExpressions));
 
                $result = $this->subject->SELECTquery('*', 'tt_content', 'uid IN (0,1,2,3,4,5,6,7,8,9,10)');
@@ -993,7 +993,7 @@ class DatabaseConnectionOracleTest extends AbstractTestCase {
        public function expressionListBracesAreSetCorrectly() {
                $listMaxExpressions = 1000;
 
-               $mockSpecificsOci8 = $this->getAccessibleMock('TYPO3\\CMS\\Dbal\\Database\\Specifics\\Oci8', array(), array(), '', FALSE);
+               $mockSpecificsOci8 = $this->getAccessibleMock(\TYPO3\CMS\Dbal\Database\Specifics\Oci8::class, array(), array(), '', FALSE);
                $mockSpecificsOci8->expects($this->any())->method('getSpecific')->will($this->returnValue($listMaxExpressions));
 
                $items = range(0, 1250);
@@ -1024,7 +1024,7 @@ class DatabaseConnectionOracleTest extends AbstractTestCase {
        public function multipleExpressiosInWhereClauseAreBracedCorrectly() {
                $listMaxExpressions = 1000;
 
-               $mockSpecificsOci8 = $this->getAccessibleMock('TYPO3\\CMS\\Dbal\\Database\\Specifics\\Oci8', array(), array(), '', FALSE);
+               $mockSpecificsOci8 = $this->getAccessibleMock(\TYPO3\CMS\Dbal\Database\Specifics\Oci8::class, array(), array(), '', FALSE);
                $mockSpecificsOci8->expects($this->any())->method('getSpecific')->will($this->returnValue($listMaxExpressions));
 
                $INitems = range(0, 1250);
index 751c222..b3bdefe 100644 (file)
@@ -33,19 +33,19 @@ class DatabaseConnectionTest extends AbstractTestCase {
                $GLOBALS['TYPO3_LOADED_EXT'] = array();
 
                /** @var \TYPO3\CMS\Dbal\Database\DatabaseConnection|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface $subject */
-               $subject = $this->getAccessibleMock('TYPO3\\CMS\\Dbal\\Database\\DatabaseConnection', array('getFieldInfoCache'), array(), '', FALSE);
+               $subject = $this->getAccessibleMock(\TYPO3\CMS\Dbal\Database\DatabaseConnection::class, array('getFieldInfoCache'), array(), '', FALSE);
 
                // Disable caching
-               $mockCacheFrontend = $this->getMock('TYPO3\\CMS\\Core\\Cache\\Frontend\\PhpFrontend', array(), array(), '', FALSE);
+               $mockCacheFrontend = $this->getMock(\TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class, array(), array(), '', FALSE);
                $subject->expects($this->any())->method('getFieldInfoCache')->will($this->returnValue($mockCacheFrontend));
 
                // Inject SqlParser - Its logic is tested with the tests, too.
-               $sqlParser = $this->getAccessibleMock('TYPO3\\CMS\\Dbal\\Database\\SqlParser', array('dummy'), array(), '', FALSE);
+               $sqlParser = $this->getAccessibleMock(\TYPO3\CMS\Dbal\Database\SqlParser::class, array('dummy'), array(), '', FALSE);
                $sqlParser->_set('databaseConnection', $subject);
                $subject->SQLparser = $sqlParser;
 
                // Mock away schema migration service from install tool
-               $installerSqlMock = $this->getMock('TYPO3\\CMS\\Install\\Service\\SqlSchemaMigrationService', array('getFieldDefinitions_fileContent'), array(), '', FALSE);
+               $installerSqlMock = $this->getMock(\TYPO3\CMS\Install\Service\SqlSchemaMigrationService::class, array('getFieldDefinitions_fileContent'), array(), '', FALSE);
                $installerSqlMock->expects($this->any())->method('getFieldDefinitions_fileContent')->will($this->returnValue(array()));
                $subject->_set('installerSql', $installerSqlMock);
 
@@ -89,16 +89,16 @@ class DatabaseConnectionTest extends AbstractTestCase {
                );
 
                /** @var \TYPO3\CMS\Dbal\Database\DatabaseConnection|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface $subject */
-               $subject = $this->getAccessibleMock('TYPO3\\CMS\\Dbal\\Database\\DatabaseConnection', array('getFieldInfoCache'), array(), '', FALSE);
+               $subject = $this->getAccessibleMock(\TYPO3\CMS\Dbal\Database\DatabaseConnection::class, array('getFieldInfoCache'), array(), '', FALSE);
 
-               $mockCacheFrontend = $this->getMock('TYPO3\\CMS\\Core\\Cache\\Frontend\\PhpFrontend', array(), array(), '', FALSE);
+               $mockCacheFrontend = $this->getMock(\TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class, array(), array(), '', FALSE);
                $subject->expects($this->any())->method('getFieldInfoCache')->will($this->returnValue($mockCacheFrontend));
 
-               $sqlParser = $this->getAccessibleMock('TYPO3\\CMS\\Dbal\\Database\\SqlParser', array('dummy'), array(), '', FALSE);
+               $sqlParser = $this->getAccessibleMock(\TYPO3\CMS\Dbal\Database\SqlParser::class, array('dummy'), array(), '', FALSE);
                $sqlParser->_set('databaseConnection', $subject);
                $subject->SQLparser = $sqlParser;
 
-               $installerSqlMock = $this->getMock('TYPO3\\CMS\\Install\\Service\\SqlSchemaMigrationService', array(), array(), '', FALSE);
+               $installerSqlMock = $this->getMock(\TYPO3\CMS\Install\Service\SqlSchemaMigrationService::class, array(), array(), '', FALSE);
                $subject->_set('installerSql', $installerSqlMock);
                $schemaMigrationResult = array(
                        'cf_cache_pages' => array(),
@@ -237,7 +237,7 @@ class DatabaseConnectionTest extends AbstractTestCase {
                        ':tag10' => 'tag-two',
                        ':tag100' => 'tag-three'
                );
-               $className = self::buildAccessibleProxy('TYPO3\\CMS\\Core\\Database\\PreparedStatement');
+               $className = self::buildAccessibleProxy(\TYPO3\CMS\Core\Database\PreparedStatement::class);
                $query = $sql;
                $precompiledQueryParts = array();
                $statement = new $className($sql, 'cache');
index 05b15da..9a3348c 100644 (file)
@@ -28,9 +28,9 @@ class SqlParserTest extends AbstractTestCase {
         * Prepares the environment before running a test.
         */
        public function setUp() {
-               $subject = $this->getAccessibleMock('TYPO3\\CMS\\Dbal\\Database\\SqlParser', array('dummy'), array(), '', FALSE);
+               $subject = $this->getAccessibleMock(\TYPO3\CMS\Dbal\Database\SqlParser::class, array('dummy'), array(), '', FALSE);
 
-               $mockDatabaseConnection = $this->getMock('TYPO3\\CMS\\Dbal\\Database\\DatabaseConnection', array(), array(), '', FALSE);
+               $mockDatabaseConnection = $this->getMock(\TYPO3\CMS\Dbal\Database\DatabaseConnection::class, array(), array(), '', FALSE);
                $mockDatabaseConnection->lastHandlerKey = '_DEFAULT';
                $subject->_set('databaseConnection', $mockDatabaseConnection);
 
index ba83e16..60aaa50 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 defined('TYPO3_MODE') or die();
 
-$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Core\\Database\\DatabaseConnection'] = array('className' => 'TYPO3\\CMS\\Dbal\\Database\\DatabaseConnection');
-$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Core\\Database\\SqlParser'] = array('className' => 'TYPO3\\CMS\\Dbal\\Database\\SqlParser');
-$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Recordlist\\RecordList\\DatabaseRecordList'] = array('className' => 'TYPO3\\CMS\\Dbal\\RecordList\\DatabaseRecordList');
+$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Core\Database\DatabaseConnection::class] = array('className' => \TYPO3\CMS\Dbal\Database\DatabaseConnection::class);
+$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Core\Database\SqlParser::class] = array('className' => \TYPO3\CMS\Dbal\Database\SqlParser::class);
+$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList::class] = array('className' => \TYPO3\CMS\Dbal\RecordList\DatabaseRecordList::class);
 
 // Register caches if not already done in localconf.php or a previously loaded extension.
 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal'])) {
        $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['dbal'] = array(
-               'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\TransientMemoryBackend',
+               'backend' => \TYPO3\CMS\Core\Cache\Backend\TransientMemoryBackend::class,
                'groups' => array()
        );
 }
index 546b9d5..1d1637a 100644 (file)
@@ -4,8 +4,8 @@ defined('TYPO3_MODE') or die();
 // Open extension manual from within Extension Manager
 $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
 $signalSlotDispatcher->connect(
-       'TYPO3\\CMS\\Extensionmanager\\ViewHelpers\\ProcessAvailableActionsViewHelper',
+       \TYPO3\CMS\Extensionmanager\ViewHelpers\ProcessAvailableActionsViewHelper::class,
        'processActions',
-       'TYPO3\\CMS\Documentation\\Slots\\ExtensionManager',
+       \TYPO3\CMS\Documentation\Slots\ExtensionManager::class,
        'processActions'
 );
index 0786358..943ffcd 100644 (file)
@@ -2,4 +2,4 @@
 defined('TYPO3_MODE') or die();
 
 // Register the edit panel view.
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/classes/class.frontendedit.php']['edit'] = 'TYPO3\\CMS\\Feedit\\FrontendEditPanel';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/classes/class.frontendedit.php']['edit'] = \TYPO3\CMS\Feedit\FrontendEditPanel::class;
index cfce91d..794454a 100644 (file)
@@ -48,9 +48,9 @@ class FrontendLoginControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $this->testTableName = 'sys_domain';
                $this->testHostName = 'hostname.tld';
                $this->testSitePath = '/';
-               $this->accessibleFixture = $this->getAccessibleMock('TYPO3\\CMS\\Felogin\\Controller\\FrontendLoginController', array('dummy'));
-               $this->accessibleFixture->cObj = $this->getMock('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
-               $GLOBALS['TSFE'] = $this->getMock('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController', array(), array(), '', FALSE);
+               $this->accessibleFixture = $this->getAccessibleMock(\TYPO3\CMS\Felogin\Controller\FrontendLoginController::class, array('dummy'));
+               $this->accessibleFixture->cObj = $this->getMock(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::class);
+               $GLOBALS['TSFE'] = $this->getMock(\TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::class, array(), array(), '', FALSE);
                $this->setUpFakeSitePathAndHost();
        }
 
@@ -66,7 +66,7 @@ class FrontendLoginControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         * Mock database
         */
        protected function setUpDatabaseMock() {
-               $GLOBALS['TYPO3_DB'] = $this->getMock('TYPO3\\CMS\\Core\\Database\\DatabaseConnection', array('exec_SELECTgetRows'));
+               $GLOBALS['TYPO3_DB'] = $this->getMock(\TYPO3\CMS\Core\Database\DatabaseConnection::class, array('exec_SELECTgetRows'));
                $GLOBALS['TYPO3_DB']
                        ->expects($this->any())
                        ->method('exec_SELECTgetRows')
index daad1e1..e29782d 100644 (file)
@@ -768,7 +768,7 @@ class FileList extends \TYPO3\CMS\Backend\RecordList\AbstractRecordList {
                }
                // Display PASTE button, if directory:
                $elFromTable = $this->clipObj->elFromTable('_FILE');
-               if (is_a($fileOrFolderObject, 'TYPO3\\CMS\\Core\\Resource\\Folder') && count($elFromTable) && $fileOrFolderObject->checkActionPermission('write')) {
+               if (is_a($fileOrFolderObject, \TYPO3\CMS\Core\Resource\Folder::class) && count($elFromTable) && $fileOrFolderObject->checkActionPermission('write')) {
                        $cells[] = '<a class="btn" href="' . htmlspecialchars($this->clipObj->pasteUrl('_FILE', $fullIdentifier)) . '" onclick="return ' . htmlspecialchars($this->clipObj->confirmMsg('_FILE', $fullIdentifier, 'into', $elFromTable)) . '" title="' . $GLOBALS['LANG']->getLL('clip_pasteInto', TRUE) . '">' . IconUtility::getSpriteIcon('actions-document-paste-into') . '</a>';
                }
                // Compile items into a DIV-element:
@@ -786,7 +786,7 @@ class FileList extends \TYPO3\CMS\Backend\RecordList\AbstractRecordList {
                $fullIdentifier = $fileOrFolderObject->getCombinedIdentifier();
                // Edit metadata of file
                try {
-                       if (is_a($fileOrFolderObject, 'TYPO3\\CMS\\Core\\Resource\\File') && $fileOrFolderObject->isIndexed() && $fileOrFolderObject->checkActionPermission('write')) {
+                       if (is_a($fileOrFolderObject, \TYPO3\CMS\Core\Resource\File::class) && $fileOrFolderObject->isIndexed() && $fileOrFolderObject->checkActionPermission('write')) {
                                $metaData = $fileOrFolderObject->_getMetaData();
                                $data = array(
                                        'sys_file_metadata' => array($metaData['uid'] => 'edit')
@@ -802,7 +802,7 @@ class FileList extends \TYPO3\CMS\Backend\RecordList\AbstractRecordList {
                        $cells['editmetadata'] = $this->spaceIcon;
                }
                // Edit file content (if editable)
-               if (is_a($fileOrFolderObject, 'TYPO3\\CMS\\Core\\Resource\\File') && $fileOrFolderObject->checkActionPermission('write') && GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['SYS']['textfile_ext'], $fileOrFolderObject->getExtension())) {
+               if (is_a($fileOrFolderObject, \TYPO3\CMS\Core\Resource\File::class) && $fileOrFolderObject->checkActionPermission('write') && GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['SYS']['textfile_ext'], $fileOrFolderObject->getExtension())) {
                        $url = BackendUtility::getModuleUrl('file_edit', array('target' => $fullIdentifier));
                        $editOnClick = 'top.content.list_frame.location.href=top.TS.PATH_typo3+' . GeneralUtility::quoteJSvalue($url) . '+\'&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search);return false;';
                        $cells['edit'] = '<a href="#" class="btn" onclick="' . htmlspecialchars($editOnClick) . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:cm.editcontent') . '">' . IconUtility::getSpriteIcon('actions-page-open') . '</a>';
@@ -818,9 +818,9 @@ class FileList extends \TYPO3\CMS\Backend\RecordList\AbstractRecordList {
                        $cells['rename'] = $this->spaceIcon;
                }
                if ($fileOrFolderObject->checkActionPermission('read')) {
-                       if (is_a($fileOrFolderObject, 'TYPO3\\CMS\\Core\\Resource\\Folder')) {
+                       if (is_a($fileOrFolderObject, \TYPO3\CMS\Core\Resource\Folder::class)) {
                                $infoOnClick = 'top.launchView( \'_FOLDER\', \'' . $fullIdentifier . '\');return false;';
-                       } elseif (is_a($fileOrFolderObject, 'TYPO3\\CMS\\Core\\Resource\\File')) {
+                       } elseif (is_a($fileOrFolderObject, \TYPO3\CMS\Core\Resource\File::class)) {
                                $infoOnClick = 'top.launchView( \'_FILE\', \'' . $fullIdentifier . '\');return false;';
                        }
                        $cells['info'] = '<a href="#" class="btn" onclick="' . $infoOnClick . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:cm.info') . '">' . IconUtility::getSpriteIcon('status-dialog-information') . '</a>';
index b28f6e4..a4f742f 100644 (file)
@@ -4,7 +4,7 @@ defined('TYPO3_MODE') or die();
 if (TYPO3_MODE === 'BE') {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
                'web_func',
-               'TYPO3\\CMS\\FuncWizards\\Controller\\WebFunctionWizardsBaseController',
+               \TYPO3\CMS\FuncWizards\Controller\WebFunctionWizardsBaseController::class,
                NULL,
                'LLL:EXT:func_wizards/locallang.xlf:mod_wizards'
        );
index 3c4e2a6..196693c 100644 (file)
@@ -3,7 +3,7 @@ defined('TYPO3_MODE') or die();
 
 if (TYPO3_MODE === 'BE') {
        $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array(
-               'name' => 'TYPO3\\CMS\\Impexp\\Clickmenu',
+               'name' => \TYPO3\CMS\Impexp\Clickmenu::class,
        );
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['taskcenter']['impexp']['tx_impexp_task'] = array(
                'title' => 'LLL:EXT:impexp/locallang_csh.xlf:.alttitle',
index 5349723..f51aa8c 100644 (file)
@@ -33,7 +33,7 @@ class IndexerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         * Sets up the test
         */
        public function setUp() {
-               $this->fixture = $this->getMock('TYPO3\CMS\IndexedSearch\Indexer', array('dummy'));
+               $this->fixture = $this->getMock(\TYPO3\CMS\IndexedSearch\Indexer::class, array('dummy'));
        }
 
        /**
@@ -99,7 +99,7 @@ class IndexerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
        public function extractHyperLinksFindsCorrectPathUsingAbsRefPrefix() {
                $absRefPrefix = '/' . md5(uniqid(''));
                $html = 'test <a href="' . $absRefPrefix . 'index.php">test</a> test';
-               $GLOBALS['TSFE'] = $this->getMock('TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController', array(), array(), '', FALSE);
+               $GLOBALS['TSFE'] = $this->getMock(\TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::class, array(), array(), '', FALSE);
                $GLOBALS['TSFE']->config['config']['absRefPrefix'] = $absRefPrefix;
                $result = $this->fixture->extractHyperLinks($html);
                $this->assertEquals(1, count($result));
index f600361..b7ce5d3 100644 (file)
@@ -10,13 +10,13 @@ if (TYPO3_MODE === 'BE') {
        );
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
                'web_info',
-               'TYPO3\\CMS\\IndexedSearch\\Controller\\IndexedPagesController',
+               \TYPO3\CMS\IndexedSearch\Controller\IndexedPagesController::class,
                NULL,
                'LLL:EXT:indexed_search/locallang.xlf:mod_indexed_search'
        );
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
                'web_info',
-               'TYPO3\\CMS\\IndexedSearch\\Controller\\IndexingStatisticsController',
+               \TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController::class,
                NULL,
                'LLL:EXT:indexed_search/locallang.xlf:mod2_indexed_search'
        );
index d8c6369..c837dfb 100644 (file)
@@ -4,7 +4,7 @@ defined('TYPO3_MODE') or die();
 if (TYPO3_MODE === 'BE') {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
                'web_info',
-               'TYPO3\CMS\InfoPagetsconfig\Controller\InfoPageTyposcriptConfigController',
+               \TYPO3\CMS\InfoPagetsconfig\Controller\InfoPageTyposcriptConfigController::class,
                NULL,
                'LLL:EXT:info_pagetsconfig/locallang.xlf:mod_pagetsconfig'
        );
index 039fea7..5d18f4a 100644 (file)
@@ -5,18 +5,18 @@ defined('TYPO3_MODE') or die();
        '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:linkvalidator/Configuration/TsConfig/Page/pagetsconfig.txt">'
 );
 
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['TYPO3\\CMS\\Linkvalidator\\Task\\ValidatorTask'] = array(
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Linkvalidator\Task\ValidatorTask::class] = array(
        'extension' => $_EXTKEY,
        'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf:tasks.validate.name',
        'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf:tasks.validate.description',
-       'additionalFields' => 'TYPO3\\CMS\\Linkvalidator\\Task\\ValidatorTaskAdditionalFieldProvider'
+       'additionalFields' => \TYPO3\CMS\Linkvalidator\Task\ValidatorTaskAdditionalFieldProvider::class
 );
 
 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks'])) {
        $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks'] = array();
 }
 
-$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['db'] = 'TYPO3\\CMS\\Linkvalidator\\Linktype\\InternalLinktype';
-$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['file'] = 'TYPO3\\CMS\\Linkvalidator\\Linktype\\FileLinktype';
-$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['external'] = 'TYPO3\\CMS\\Linkvalidator\\Linktype\\ExternalLinktype';
-$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['linkhandler'] = 'TYPO3\\CMS\\Linkvalidator\\Linktype\\LinkHandler';
+$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['db'] = \TYPO3\CMS\Linkvalidator\Linktype\InternalLinktype::class;
+$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['file'] = \TYPO3\CMS\Linkvalidator\Linktype\FileLinktype::class;
+$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['external'] = \TYPO3\CMS\Linkvalidator\Linktype\ExternalLinktype::class;
+$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['linkvalidator']['checkLinks']['linkhandler'] = \TYPO3\CMS\Linkvalidator\Linktype\LinkHandler::class;
index d27b464..fcf1cc3 100644 (file)
@@ -5,7 +5,7 @@ if (TYPO3_MODE === 'BE') {
        // Add module
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
                'web_info',
-               'TYPO3\\CMS\\Linkvalidator\\Report\\LinkValidatorReport',
+               \TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport::class,
                NULL,
                'LLL:EXT:linkvalidator/Resources/Private/Language/locallang.xlf:mod_linkvalidator'
        );
index 7d88cfc..7a107ab 100644 (file)
@@ -3,8 +3,8 @@ defined('TYPO3_MODE') or die();
 
 if (TYPO3_MODE === 'BE') {
        // Register AJAX calls
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('TxOpendocs::renderMenu', 'TYPO3\\CMS\\Opendocs\\Backend\\ToolbarItems\\OpendocsToolbarItem->renderAjax');
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('TxOpendocs::closeDocument', 'TYPO3\\CMS\\Opendocs\\Backend\\ToolbarItems\\OpendocsToolbarItem->closeDocument');
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('TxOpendocs::renderMenu', \TYPO3\CMS\Opendocs\Backend\ToolbarItems\OpendocsToolbarItem::class . '->renderAjax');
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('TxOpendocs::closeDocument', \TYPO3\CMS\Opendocs\Backend\ToolbarItems\OpendocsToolbarItem::class . '->closeDocument');
        // Register update signal to update the number of open documents
-       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['updateSignalHook']['OpendocsController::updateNumber'] = 'TYPO3\\CMS\\Opendocs\\Backend\\ToolbarItems\\OpendocsToolbarItem->updateNumberOfOpenDocsHook';
+       $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['updateSignalHook']['OpendocsController::updateNumber'] = \TYPO3\CMS\Opendocs\Backend\ToolbarItems\OpendocsToolbarItem::class . '->updateNumberOfOpenDocsHook';
 }
index 73ae415..91ce847 100644 (file)
@@ -16,7 +16,7 @@ defined('TYPO3_MODE') or die();
                'quality' => 50,
                'os' => '',
                'exec' => '',
-               'className' => 'TYPO3\\CMS\\Openid\\OpenidService'
+               'className' => \TYPO3\CMS\Openid\OpenidService::class
        )
 );
 
@@ -35,12 +35,12 @@ defined('TYPO3_MODE') or die();
                'quality' => 50,
                'os' => '',
                'exec' => '',
-               'className' => 'TYPO3\\CMS\\Openid\\OpenidService'
+               'className' => \TYPO3\CMS\Openid\OpenidService::class
        )
 );
 
 // Register eID script that performs final FE user authentication. It will be called by the OpenID provider
 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_openid'] = 'EXT:openid/class.tx_openid_eid.php';
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['setup']['accessLevelCheck']['TYPO3\\CMS\\Openid\\OpenidModuleSetup'] = '';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['setup']['accessLevelCheck'][\TYPO3\CMS\Openid\OpenidModuleSetup::class] = '';
 // Use popup window to refresh login instead of the AJAX relogin:
 $GLOBALS['TYPO3_CONF_VARS']['BE']['showRefreshLoginPopup'] = 1;
index 5d5c515..3ea1f45 100644 (file)
@@ -14,8 +14,8 @@ if (TYPO3_MODE === 'BE') {
                'table' => 'be_users',
                'label' => 'LLL:EXT:openid/locallang_db.xlf:_MOD_user_setup.tx_openid_openid',
                'csh' => 'tx_openid_openid',
-               'userFunc' => 'TYPO3\\CMS\\Openid\\OpenidModuleSetup->renderOpenID',
-               'access' => 'TYPO3\\CMS\\Openid\\OpenidModuleSetup'
+               'userFunc' => \TYPO3\CMS\Openid\OpenidModuleSetup::class . '->renderOpenID',
+               'access' => \TYPO3\CMS\Openid\OpenidModuleSetup::class
        );
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToUserSettings('tx_openid_openid', 'after:password2');
 }
index 238c173..9ef01b3 100644 (file)
@@ -10,7 +10,7 @@ if (TYPO3_MODE == 'BE') {
                );
 
                $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array(
-                       'name' => 'TYPO3\\CMS\\Version\\ClickMenu\\VersionClickMenu',
+                       'name' => \TYPO3\CMS\Version\ClickMenu\VersionClickMenu::class,
                );
        }
 }