Open patie opened 11 years ago
As explained in the documentation, @Inject
on private and protected properties only works in controllers, not in services: http://jmsyst.com/bundles/JMSDiExtraBundle/master/usage#property-injection
I am not sure you can, since Repository need another service factory (doctrine.orm.default_entity_manager
) and JMSDiExtraBundle dont provide a way to config factory_service
.
Ping https://github.com/schmittjoh/JMSDiExtraBundle/issues/65
im trying
_@Inject dont work in this case_
im tried also:
dont work too - but this is probably ok - because parent has container injection
what i need is Repository as service, because im using controllers as services.. its possible with DI Extra or i must register service standard way ? thanks !