2016-03-15 2 views
2

Je développe un projet sur ZF2 + Doctrine2. J'utilise aussi ZfcUser. Mon composer.json ressemble:ZF2 mis à jour - Obsolète: ServiceManagerAwareInterface est obsolète et sera supprimé dans la version 3.0, avec le ServiceManagerAwareInitializer

"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.*", 

Tout fonctionne bien jusqu'à ce que j'a mis à jour projet par le compositeur ...

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 

Je ne comprends pas comment il peut fixer correctement. Je n'ai pas le temps, alors je serai très reconnaissant si quelqu'un va montrer en détail comment cela peut changer.

+0

Stable et compatible avec la version ZfcUser est 2.5.2 –

+0

Nous n'avons pas le temps aussi. – tasmaniski

Répondre

0

Ce problème nécessite un refactoring de la bibliothèque ZfcUser. Un Github issue a déjà été signalé, il existe également une correction possible, pas encore fusionnée, comme pull request.

Mais vous n'avez pas besoin de commencer à pleurer, car ce n'est qu'une information. Pendant que vous utilisez ZF2 ZfcUser fonctionnera comme prévu grâce à SemVer et ne pas casser la compatibilité ascendante.