Changed configuration utility to be accessed in method instead by automatic dependency injection (as this seems not to be possible)

This commit is contained in:
Dirk Jahnke 2016-10-04 17:45:37 +02:00
parent ea8045191d
commit 83ea259880
1 changed files with 2 additions and 8 deletions

View File

@ -35,13 +35,6 @@ use \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility;
class SsoController extends ActionController class SsoController extends ActionController
{ {
/**
* Configuration Utility (see definitions in ext_conf_template.txt).
*
* @var \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility
* @inject
*/
public $configurationUtility;
/** /**
* Compare if signed data matches given signature. * Compare if signed data matches given signature.
@ -80,7 +73,8 @@ class SsoController extends ActionController
$extKey = $_EXTKEY; //'dj_discourse_sso'; $extKey = $_EXTKEY; //'dj_discourse_sso';
/** @var \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility */ /** @var \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility */
$extensionConfiguration = $this->configurationUtility->getCurrentConfiguration($extKey); $configurationUtility = $this->objectManager->get(ConfigurationUtility::class);
$extensionConfiguration = $configurationUtility->getCurrentConfiguration($extKey);
GeneralUtility::devLog('authenticateAction', $extKey, 0, array('config' => $extensionConfiguration)); GeneralUtility::devLog('authenticateAction', $extKey, 0, array('config' => $extensionConfiguration));
// Check mandatory settings. // Check mandatory settings.