[TYPO3-mvc] Proposal: mixed-ins for extbase

Bastian Waidelich bastian at typo3.org
Mon Aug 2 11:15:19 CEST 2010


Helmut Hummel wrote:

Hi Helmut,
this would be a great feature and I'm looking forward to seeing your 
implementation!


> I currently think of something like this:
>
> persistence {
>    classes {
>      Tx_Extbase_Domain_Model_FrontendUser {
>        subclasses {
> 	Tx_BlogExample_Domain_Model_Admin = Tx_BlogExample_Dom...
>        }
>        mixins {
>          Tx_MyExt_FooBar = Tx_MyExt_FooBar
>          Tx_YourExt_FooBar = Tx_YourExt_FooBar
>        }
> }

I think, that the configuration of mixins should happen at the same 
location as the configuration for dependency injection.
And IMO that should not be in "persistence" but rather in "objects" as 
it's done in FLOW3. After all you should be able to use mixins for all 
classes not only for the persistence layer.


> Because with this hash the generated php file could easily be required
> instead of the original class, wich has no performance impact at all.

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)

Best,
Bastian


More information about the TYPO3-project-typo3v4mvc mailing list