[TYPO3-core] RFC: #12591: Make EXT: syntax consistent in core
Oliver Hader
oliver at typo3.org
Mon Nov 23 00:34:06 CET 2009
Hi Steffen,
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.
The new method must be declared as static.
Besides that, t3lib_div::makeInstance() just takes care about creating a
new instance and did that for ages.
Adding new functionality there about loading class files by calling e.g.
t3lib_div::makeInstance('EXT:myext/tx_myext_dispatch') looks a bit
strange to me.
Thus: -1 for TYPO3 4.3
olly
--
Oliver Hader
TYPO3 Release Manager 4.3
More information about the TYPO3-team-core
mailing list