[TYPO3-mvc] RFC #7883: Bug: Fluid: CObjectViewHelper not working in the frame of eID, Services, pibase

Bastian Waidelich bastian at typo3.org
Wed Jun 2 10:54:58 CEST 2010


Fabien Udriot wrote:

Hi Fabien,

> Update is to be found on Forge about this RFC.
> http://forge.typo3.org/issues/show/7883
> I need this feature in the next release. Please vote. :)

I don't want to give my -1 here, but I'm a bit concerned about this 
still, because:

1. in your new method initializeConfigurationManager() you're always 
creating a FrontendConfigurationManager, so this wouldn't work in BE-mode

2. yet there is only one core view helper that makes use of the 
configuration manager. But I'm sure, that will change. And then it's a 
pitty that you always have to do something like:

$configurationManager = tx_Extbase_Dispatcher::getConfigurationManager();
if ($configurationManager === NULL) {
	Tx_Extbase_Dispatcher::initializeConfigurationManager();
	$configurationManager = Tx_Extbase_Dispatcher::getConfigurationManager();
}

As the configuration manager is always a global (reads static) instance 
per request, one shouldn't have to care about initialization.

I don't want to be fussy here and I'd agree to commit your (first) patch 
as a temporary fix. But in the long run we probably have to refactor the 
dispatcher - it's a bit strange that you have to ask the dispatcher for 
the configuration manager in the first place, innit?

Bastian


More information about the TYPO3-project-typo3v4mvc mailing list