From 83ea259880f507bcbbf18014562e10c038ed7c4c Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Tue, 4 Oct 2016 17:45:37 +0200 Subject: [PATCH] Changed configuration utility to be accessed in method instead by automatic dependency injection (as this seems not to be possible) --- Classes/Controller/SsoController.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Classes/Controller/SsoController.php b/Classes/Controller/SsoController.php index 11b3802..5e26c31 100644 --- a/Classes/Controller/SsoController.php +++ b/Classes/Controller/SsoController.php @@ -35,13 +35,6 @@ use \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility; 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. @@ -80,7 +73,8 @@ class SsoController extends ActionController $extKey = $_EXTKEY; //'dj_discourse_sso'; /** @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)); // Check mandatory settings.