[TYPO3-mvc] Urgent: Tx_Extbase_Utility_Plugin::registerPlugin() fails with $_EXTKEY

Jochen Rau jochen.rau at typoplanet.de
Tue May 19 12:33:56 CEST 2009


Hi Ingo,

> the new method
> Tx_Extbase_Utility_Plugin::registerPlugin(); fails when using it in the 
> way we did with t3lib_extMgm::addPlugin():
> 
> 
> Tx_Extbase_Utility_Plugin::registerPlugin(
> 	$_EXTKEY,
> 	'IdeaList',
> 	'Idea List',
> 	array (
> 		'Idea' => 'index,show,new,create,delete,deleteAll,edit,update',
> 		'Vote' => 'new,create'
> 	),
> 	array (
> 		'Idea' => 'new,create,delete,deleteAll,update',
> 		'Vote' => 'new,create'
> 	)
> );
> 
> fails with an InvalidArgumentException as $_EXTKEY is all lowercase. I 
> don't see why we should not be able to use $_EXTKEY anymore and would 
> thus be happy if we could change that quickly before alpha3.

I have changed the implementation a little bit. Now you are free to 
choose wheter you want to pass the extension name (in UpperCamelCase) 
or the extension key (in lower_underscore).

Regards
Jochen




More information about the TYPO3-project-typo3v4mvc mailing list