[TASK] Use name-resolution instead of strings where possible: 12
[Packages/TYPO3.CMS.git] / typo3 / sysext / sv / ext_localconf.php
index 10323ac..601fe6f 100644 (file)
@@ -5,7 +5,7 @@ defined('TYPO3_MODE') or die();
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
        $_EXTKEY,
        'auth',
-       'TYPO3\\CMS\\Sv\\AuthenticationService',
+       \TYPO3\CMS\Sv\AuthenticationService::class,
        array(
                'title' => 'User authentication',
                'description' => 'Authentication with username/password.',
@@ -15,9 +15,9 @@ defined('TYPO3_MODE') or die();
                'quality' => 50,
                'os' => '',
                'exec' => '',
-               'className' => 'TYPO3\\CMS\\Sv\\AuthenticationService'
+               'className' => \TYPO3\CMS\Sv\AuthenticationService::class
        )
 );
 // Add hooks to the backend login form
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginFormHook'][$_EXTKEY] = 'TYPO3\\CMS\\Sv\\LoginFormHook->getLoginFormTag';
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginScriptHook'][$_EXTKEY] = 'TYPO3\\CMS\\Sv\\LoginFormHook->getLoginScripts';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginFormHook'][$_EXTKEY] = \TYPO3\CMS\Sv\LoginFormHook::class . '->getLoginFormTag';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginScriptHook'][$_EXTKEY] = \TYPO3\CMS\Sv\LoginFormHook::class . '->getLoginScripts';