[TYPO3-core] RFC: #12518: Reports module doesn't support EXT: syntax
Steffen Kamper
info at sk-typo3.de
Mon Nov 9 16:05:55 CET 2009
Hi Ernesto,
Ernesto Baschny [cron IT] schrieb:
> Maybe using t3lib_div::getUserObj instead of t3lib_div::makeInstance
> would make the trick and be less "bloated" (reimplementing the EXT:
> handling once again). getUserObj already handles the EXT: prefix and
> does the necessary require_once if needed.
>
> Only caveat is that you cannot pass an argument to the constructor, but
> maybe we could add support for it in getUserObj too?
>
i just had same idea, which would also prevent double code.
And yes, the call to constructor is the problem. I think it's more
elegant to use getUserObj and use additional params for makeInstance inside.
I will come up with such solution soon.
vg Steffen
More information about the TYPO3-team-core
mailing list