[TYPO3-dev] Adding parameters to t3lib_div::makeInstance

Franz Koch typo.removeformessage at fx-graefix.de
Sat Oct 27 11:59:03 CEST 2007


Hi,

> I just came across three bug issues posted by Dmitry in the bug tracker.
> 
> 0006487: tx_commerce_category does not use t3lib_div::makeInstance
> Line 436:
> 
> $category= new tx_commerce_category($oneCategoryUid,$this->lang_uid);
> 
> and two analogous issues.
> The problem is, that
> 
> tx_commerce_category
> 
> needs params for the contructor to work.

that's not entirely correct. In commerce you can add parameters to the 
constructor, but you can also call the init method of the class and add 
the parameters there. Just as hint :-)

> Imho there s nothing to be said against adding the possibility of 
> parameters to t3lib_div::makeInstance.

But you're right - it would be nice to have that feature.

--
Greetings,
Franz Koch




More information about the TYPO3-dev mailing list