[TYPO3-mvc] Proposal: mixed-ins for extbase
Bastian Waidelich
bastian at typo3.org
Tue Aug 3 18:46:38 CEST 2010
Martin Kutschker wrote:
Hi Masi,
>> BTW: we probably need those proxy PHP classes anyways (for high-performance DI). We need to think
>> about a clean approach here (e.g. you might need different proxies depending on the context)
>
> Why proxies? We use an auto-loader so we can load any file we want? [...]
Right. For DI we might not need proxies - Felix is currently working on
a ObjectManager "backport" that would wire up dependencies automatically
[1]. Lets see how fast this will be.
> we get even more performance as we there is no overhead of indirect function calls.
What do you mean by "indirect function calls"?
A proxy would inherit from the original class and only override methods
that need to be modified.
Anyways, for mixins we will need proxies pretty sure - at least until
support for traits [2] or mixins [3] is part of the PHP core..
Best,
Bastian
[1]
http://lists.typo3.org/pipermail/typo3-project-typo3v4mvc/2010-July/006019.html
[2] http://wiki.php.net/rfc/traits
[3] http://wiki.php.net/rfc/mixin
More information about the TYPO3-project-typo3v4mvc
mailing list