[TYPO3-mvc] Mixin support for Extbase 6.0

Helmut Hummel helmut.hummel at typo3.org
Wed Aug 1 08:43:24 CEST 2012


Hi Karsten,

On 30.07.12 08:10, Karsten Dambekalns wrote:

> On 27.07.12 03:14, Claus Due wrote:
>> … make PHP 5.4 a requirement and use Traits which can do exactly this.
>
> Exactly what we decided for FLOW3 - mixins will need traits when
> implemented.

What exactly does that mean?

Will FLOW3 support extending classes from different sources without the 
need to edit the original class?
If so, you still need to (automatically) modifiy the source of the class 
and add the trait usages to it.

And then the questions still are:
* Where and how to configure which traits are added to which class
* Should mixins configured for parent class be available in child class? 
(no dependecy injection)
* Should mixins configured for class0 be also applied to class1 which 
overrides it by dependency injection ? ( $om->create(class0); is used )
* Should class 1 which overrides class 0 (by DI), but does not extends 
0, get mixins from class 0
(when called directly)? $om->create(class1);

(see http://forge.typo3.org/issues/39305)

Would be great if you could elaborate a bit on what your thoughts are 
regarding mixins.

Thanks.

Kind regards,
Helmut

-- 
Helmut Hummel
Release Manager TYPO3 6.0
TYPO3 Core Developer, TYPO3 Security Team Leader

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-typo3v4mvc mailing list