[TYPO3-mvc] How to get to typoscipt ?

Dawid Pacholczyk dpacholczyk at gmail.com
Thu Jan 13 18:39:25 CET 2011


On 13.01.2011 17:53, Franz Koch wrote:
> Hey Tim,
>
>>> This is what we suggest, you should NOT use static classes, now that
>>> we have DI :)
>>
>>
>> I haven't looked at the DI Feature yet, maybe now would be a good time
>> to do so ;)
>> But wthen - what are Utility Classes for, when not such generic tasks?
>
> you can still have and use utility classes - we all do I think. It's
> recommended to instantiate them (having them as singleton) in order to
> take advantage of DI etc., but you can still use static classes. But
> because of the fact that almost every extbase core class depends on DI,
> you at least need to instantiate all classes in your static class using
> the objectManager which you itself can instantiate using t3lib_div.
>
> But believe me - once you got infected by the DI virus, you gladly take
> the "overhead" to create local instances of your classes :) It's so much
> more convenient :)
>

Franz do you have maybe a sample code where we could see the usage of 
it. I`ve something about DI but still I have problems with proper usage 
in extbase.

I would be very glad - and I think not only me - if I had opportunity to 
see DI in extbase in action

Best regards,
Dawid Pacholczyk


More information about the TYPO3-project-typo3v4mvc mailing list