[TYPO3-core] Wrapper methods around globals?
Stefano Cecere
scecere at krur.com
Thu Mar 20 13:25:33 CET 2014
François.. incredible this morning i came to the same solution (after
days of struggling with complex $GLOBALS['TYPO3_DB'] queries) and just
posted in the dev list the tip
i don't mind if it's a little slower (i decided to not deploy anymore
code that isn't full clean from PhpStorm :)
stefano
On 19/03/14 11:42, François Suter wrote:
> 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
>
--
-- --- ----- -------
Stefano Cecere
KRUR studio - http://krur.com
More information about the TYPO3-team-core
mailing list