Zend framework ZF2-已弃用:ServiceManagerRawareInterface已弃用,将在版本3.0中与ServiceManagerRawareInitializer一起删除

Zend framework ZF2-已弃用:ServiceManagerRawareInterface已弃用,将在版本3.0中与ServiceManagerRawareInitializer一起删除,zend-framework,zend-framework2,service-locator,zfcuser,Zend Framework,Zend Framework2,Service Locator,Zfcuser,我正在开发一个关于ZF2+Doctrine2的项目。我也在使用ZfcUser。My composer.json看起来像: "php" : ">=5.5", "zendframework/zendframework" : "~2.5", "zendframework/zendservice-recaptcha" : "2.*", "doctrin

我正在开发一个关于ZF2+Doctrine2的项目。我也在使用ZfcUser。My composer.json看起来像:

    "php"                                       : ">=5.5",
    "zendframework/zendframework"               : "~2.5",
    "zendframework/zendservice-recaptcha"       : "2.*",
    "doctrine/doctrine-orm-module"              : "0.*",
    "zf-commons/zfc-base"                       : "0.*",
    "zf-commons/zfc-user"                       : "1.*",
    "zf-commons/zfc-user-doctrine-orm"          : "^1.0",
    "zf-commons/zfc-admin"                      : "0.1.0",
    "bjyoungblood/bjy-authorize"                : "1.*",
所有作品都很好,直到我通过composer更新了项目

Deprecated: ServiceManagerAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceManagerAwareInitializer. Please update your class ZfcUser\Authentication\Storage\Db to remove the implementation, and start injecting your dependencies via factory instead. in /vagrant/personal/vendor/zendframework/zend-mvc/src/Service/ServiceManagerConfig.php on line 127

Deprecated: ServiceManagerAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceManagerAwareInitializer. Please update your class ZfcUser\Authentication\Adapter\Db to remove the implementation, and start injecting your dependencies via factory instead. in /vagrant/personal/vendor/zendframework/zend-mvc/src/Service/ServiceManagerConfig.php on line 127

Deprecated: ServiceManagerAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceManagerAwareInitializer. Please update your class ZfcUser\Service\User to remove the implementation, and start injecting your dependencies via factory instead. in /vagrant/personal/vendor/zendframework/zend-mvc/src/Service/ServiceManagerConfig.php on line 127

我不明白它怎么能正确地修复。我没有时间,因此如果有人能详细说明如何更改,我将不胜感激。

这个问题需要对ZfcUser库进行一些重构。A已报告,还有一个可能的,尚未合并的修复,如


但你不必哭,因为这只是一个信息。当您使用ZF2时,由于SemVer和不破坏向后兼容性,ZfcUser将按预期工作。

稳定和兼容ZfcUser版本是2.5.2,我们没有时间了。