Where does the Module Manager in zf2 gets registered as a Service of the Service Manager?

StackOverflow https://stackoverflow.com/questions/23546920

  •  18-07-2023
  •  | 
  •  

문제

i'm reading the code of Zendframework 2, in order to understand it better. I can't find the place in the code where the Module Manager gets registered in the Service Manager as a service. Any help is much appreciated.

Greetings, Todor

도움이 되었습니까?

해결책

\Zend\Mvc\Application::init() creates the service manager, passing in a ServiceManagerConfig, which by default defines a few factories.

So in a typical \Zend\Mvc\Application, the module manager get wired into the ServiceManager via that factory. The factory is responsible for creating the ModuleManager the first time it's requested.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top