haassie / rh_recaptcha

TYPO3 extension implementing Google reCAPTCHA
1 stars 9 forks source link

Wrong implementation of ConfigurationManager #3

Closed SventB closed 8 years ago

SventB commented 8 years ago

With TYPO3 6.2.15 I get this error:

Fatal error: Call to a member function getTypoScriptSetup() on a non-object

because of this line:

$configurationManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager');

You should use the objectManager:

$configurationManager = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManager');

Don't forget this:

/**
 * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
 * @inject
 */
protected $objectManager;
haassie commented 8 years ago

This is fixed now in the release of version 0.0.3. Will be in TER any moment.