[TYPO3-mvc] Where is the right place and naming style for services?

Roland most.wanted at gmx.at
Tue Jun 26 18:08:53 CEST 2012


hi bastian,

>> (1) where is the right/best place for services?
>>
>> /Classes/Service/
>> /Classes/Domain/Service/
>
> That greatly depends on your service.
> If it is related to the domain of your extension (like the
> TagCloudService in the blog_example) it should go to Domain/Service. If
> it is a general utility service (like the Email service in FED) Service
> is a good place.

makes sense.

>> (2) what is the prefered way to name services?
>>
>> EXT:blog_example: Tx_BlogExample_Domain_Service_TagCloudService
>> EXT:fed: Tx_Fed_Service_Email
>
> Following the FLOW3 Coding Guidelines [1] *Service would be correct.

makes even more sense! ;-)

thanks for your help!

kind regards

roland


More information about the TYPO3-project-typo3v4mvc mailing list