[英]ZF2 - Deprecated: ServiceManagerAwareInterface is deprecated and will be removed in version 3.0, along with the ServiceManagerAwareInitializer
我正在開發有關ZF2 + Doctrine2的項目。 另外我正在使用ZfcUser。 我的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.*",
一切正常,直到我通過作曲家更新了項目...
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庫進行一些重構。 已經報告了一個Github問題 ,也有可能(尚未合並)作為pull request修復。
但是您不必哭泣,因為這只是一個信息。 使用ZF2時,由於使用了SemVer,ZfcUser可以按預期工作,並且不會破壞向后兼容性。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.