问题标签 [zend-servicemanager]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
24 浏览

php - Zf3 在 OnBootrstap() Module.php 中获取自定义服务实例 - 获取 ServiceNotFoundException 致命错误

我一直在尝试在 Onbootstrap 函数中获取自定义服务实例。我没有成功。

请查看我的代码,我收到以下错误

模块.php

模块.config.php

工厂\MongoConfigurationFactory.php

MongoConfiguration.php

我想让 MongoConfiguration 位于 onBootstrap 函数中的 Module.php 本身中。

你能告诉我我错过了什么吗?