[TYPO3-core] Wrapper methods around globals?
François Suter
fsu-lists at cobweb.ch
Wed Mar 19 11:42:10 CET 2014
Hi all,
In a patch I submitted this morning [1], I added a wrapper method around
$GLOBALS['BE_USER'], because it makes it much easier to work with such
globals in an IDE, having type hinting and code completion. I did it
because I saw other places in the Core using this way of doing this.
Now Kay Strobach thinks this should not be done for performance reasons.
Do we have guidelines about this?
I'm perfectly willing to update my patch and remove that wrapper method,
but I would first like to know if there's any consensus about this.
Cheers
--
Francois Suter
Work: Cobweb Development Sarl - http://www.cobweb.ch
TYPO3: Help the project! - http://typo3.org/contribute/
Appreciate my work? Support me -
http://www.monpetitcoin.com/en/francois/support-me/
[1] https://review.typo3.org/#/c/28518/
More information about the TYPO3-team-core
mailing list