i have a factory for creating an object.
Abbruchprotokoll::class => factory(function(ContainerInterface $c){
return new Abbruchprotokoll($c->get(Request::class)->getRouterParam('stts-id'), $c->get(MySQL::class));
})
the factory is creating that object with a string and a dependency injection (MySQL Class).
In my Abbruchprotokoll::class
i have an inject annotation:
/**
* @Inject
* @var \Smarty
*/
protected $smarty;
the problem is, that this inject annotation is not resolved. i think this is because i am on FactoryResolver
and there is no injectMethodsAndProperties()
like in ObjectCreator
.
can i use injection annotations with factories in some other way?