[TYPO3-mvc] Access typoscript settings in hook

Bas van der Togt b.vandertogt at profinit.com
Mon Sep 16 15:24:41 CEST 2013


Hello,

How can i access the typoscript settings in a hook?

\Classes\Hook\ItemsProcFunc.php
--
namespace Pro\FfOverview\Hook;
class ItemsProcFunc {

	/**
	 * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
	 * @inject
	 */
	protected $configurationManager;

	public function addFields($config) {
		$settings = 
$this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS, 
'ff_overview', 'overview');
	[...]
	}
}
--

With above code i get: Fatal error: Call to a member function 
getConfiguration() on a non-object...

Regards,
Bas


More information about the TYPO3-project-typo3v4mvc mailing list