我正在尝试使用 get 方法从 DI 中检索对象。
对象是这样设置的
// $new_array the array with the merged data. Load it in a
// \Phalcon\Config object
$config = new \Phalcon\Config($new_array);
//Store the config in your DI container for easier use
$di->set('config', $config);
这是我打电话时收到的错误消息
$new_array = $di->get('config');
[未捕获的异常 'Phalcon\DI\Exception' 带有消息'无效的服务定义。缺少'className'参数']
我已经坚持了几天了,所以非常感谢我能得到的任何帮助。