JMSDiExtraBundle
JMSDiExtraBundle copied to clipboard
add support for multiple service annotations
this only adds the ability to define multipe service annotations on a class
to fully implement https://github.com/schmittjoh/JMSDiExtraBundle/issues/232 we need to define how to add injections based on different service notations.
perhaps something like:
@Service(
"first.service",
initMethod="setup",
initMethodInject=@InjectParams({
"system" =@Inject("%first%)
})
)
@Service(
"second.service",
initMethod = "setup",
initMethodInject = @InjectParams({
"system" = @Inject("%second%)
})
)
Ideas?
@Ener-Getick I just added the support for AfterSetup services
I'm wondering if we should not create a new ServiceMetadata class or just use the Definition class directly...
@schmittjoh What do you think about having a new metadata class ? something like ServiceMetadata which would contain all the linked fields instead of having an array.
as this is a big stuff, I think it will wait for 1.8.