[TYPO3-core] RFC: #12591: Make EXT: syntax consistent in core

Susanne Moog typo3 at susannemoog.de
Sun Nov 22 21:13:10 CET 2009


Hi,

Steffen Kamper schrieb:
> Hi,
> 
> This is SVN patch request.
> 
> Type: Bugfix
> 
> Branches: trunk
> 
> BT reference: http://bugs.typo3.org/view.php?id=12591
> 
> There are several places where you can use the EXT:extkey/... syntax to
> load files.
> Most prominent is in t3lib_div::getUserObj which is used for hooks.
> 
> To make it more consistent i allowed this syntax also in
> t3lib_div::makeInstance.
> A new function t3lib_div::getClassNameAndLoadClassFile is used by
> getUserObj and makeInstance.
> 
> Additional:
> You may consider it as feature, but i think making code consistent is a
> bugfix.

+1 by testing.

Tested were in an extension:

1) normal require_once + makeInstance('test')
2) makeInstance('path_to_file:test')
3) makeInstance('EXT:rest_of_path:test')

Would have been nicer though if you had provided a small "how to test"
to show the possibilities of your new feature instead of getting
impatient that nobody tested ;)

Cheers,

Susanne


More information about the TYPO3-team-core mailing list