Answer the question
In order to leave comments, you need to log in
How to configure DI in ZF2?
Hello !
Using an example, please explain how to configure DI in ZF2, for example, here is the config in SF2:
services:
sample_service:
class: Sample\Namespace\Class
arguments: [@entity_manager]
need_inject_service:
class: Need\Inject\Service
arguments:
- @sample_service
- @entity_manager
Answer the question
In order to leave comments, you need to log in
And of. have you tried reading the manual? framework.zend.com/manual/current/en/modules/zend....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question