[TYPO3-50-general] Last minute concept fix? Incosistent class naming for domain models ...
Robert Lemke
robert at typo3.org
Thu May 28 10:44:15 CEST 2009
Hi Sebastian,
On 28.05.2009, at 10:25, Sebastian Kurfürst wrote:
> I feel that the domain object and its connected repository belong
> closely together, so to me it makes sense to have BlogModel and
> BlogRepository in the same directory.
> Same for the validation: As the BlogValidator validates the Blog
> Domain
> Object, Validation is a property of the Domain Model and should thus
> reside in Model\BlogValidator.
>
> I think Services are not coupled so closely to specific domain
> objects,thus I would leave them in an own directory.
If you provide REST services for your key domain models, you'll end up
with
with one service per model (see below).
> So, I would leave it as it is now, because to me, Blog, BlogRepository
> and BlogValidator are one single thing, and they inherently belong
> together.
So you propose this structure?
\F3
\Blog
\Domain
\Model
Blog
BlogRepository
BlogValidator
Post
PostRepository
PostValidator
BlogOwner
BlogOwnerValidator
Comment
Tag
\Service
BlogService
PostService
Hmmm.
robert
More information about the TYPO3-project-5_0-general
mailing list