Symfony2: The Best Way to Deploy Services Between Other Services

I read a few posts on this subject, but I'm still wondering if there is a better way to "automatically enter" any service. I mean, if I have a namespace called person services (which includes personalDataService, siblings of DataService, etc.) It would be great if I could do something like this:

services:
    Person.personalData:
        class:        Main\UserBundle\Services\PersonalDataService
        arguments: [Person.*]

    Person.relativesData:
        class:        Main\UserBundle\Services\RelativesataService
        arguments: [Person.*]

I know you can follow this post , but I'm looking for another โ€œeffectiveโ€ way.

+3
source share
1 answer

There is no better way. The best way is the method described in your own post ...

Why is this?

, , , , . , , , , , ... , , , .

, ...

+1

All Articles