I've read some post regarding this subject but I'm still wondering if there is a better way to "auto inject" any service. I mean, if I have a namespace called person services (which includes personalDataService, relativesDataService, etc) it'd 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 that is possible to follow this post but I'm looking for other "efficient" way