[TASK] Follow up: Remove obsolete reports icon
[Packages/TYPO3.CMS.git] / typo3 / sysext / sv / ext_localconf.php
index 84f7378..10323ac 100644 (file)
@@ -1,21 +1,23 @@
 <?php
-if (!defined('TYPO3_MODE')) {
-       die('Access denied.');
-}
+defined('TYPO3_MODE') or die();
+
 // Register base authentication service
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService($_EXTKEY, 'auth', 'TYPO3\\CMS\\Sv\\AuthenticationService', array(
-       'title' => 'User authentication',
-       'description' => 'Authentication with username/password.',
-       'subtype' => 'getUserBE,authUserBE,getUserFE,authUserFE,getGroupsFE,processLoginDataBE,processLoginDataFE',
-       'available' => TRUE,
-       'priority' => 50,
-       'quality' => 50,
-       'os' => '',
-       'exec' => '',
-       'classFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'class.tx_sv_auth.php',
-       'className' => 'TYPO3\\CMS\\Sv\\AuthenticationService'
-));
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
+       $_EXTKEY,
+       'auth',
+       'TYPO3\\CMS\\Sv\\AuthenticationService',
+       array(
+               'title' => 'User authentication',
+               'description' => 'Authentication with username/password.',
+               'subtype' => 'getUserBE,authUserBE,getUserFE,authUserFE,getGroupsFE,processLoginDataBE,processLoginDataFE',
+               'available' => TRUE,
+               'priority' => 50,
+               'quality' => 50,
+               'os' => '',
+               'exec' => '',
+               'className' => 'TYPO3\\CMS\\Sv\\AuthenticationService'
+       )
+);
 // Add hooks to the backend login form
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginFormHook'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/class.tx_sv_loginformhook.php:TYPO3\\CMS\\Sv\\LoginFormHook->getLoginFormTag';
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/index.php']['loginScriptHook'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/class.tx_sv_loginformhook.php:TYPO3\\CMS\\Sv\\LoginFormHook->getLoginScripts';
-?>
\ No newline at end of file
+$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';