-
Notifications
You must be signed in to change notification settings - Fork 64
Deprecation Warning for ServiceLocatorAwareInterface #332
Comments
ZF\Apigility\Admin\Model\DoctrineAdapterResource only uses the ServiceManager to get the ModuleManager. It would make sense to replace injection of the ServiceManager with ModuleManager.
ZF\Apigility\Admin\Model\AbstractAutodiscoveryModel is a bit more tricky since removing ServiceManagerAwareInterface also breaks compatibility in zfcampus/zf-apigility-doctrine.
|
I had the same deprecation warnings when created new apigility project. "php": "^5.6 || ^7.0", The full composer.json looks like:
Please note updating the composer helped to fix the issue "Hydrator Service issue #334" |
This is only a workaround. Not the solution for cb with future versions of zf. |
@weierophinney @ezimuel I started to do work on zf-apigility-doctrine to remove the ServiceLocatorAwareInterface and was quickly stopped at this project: https://github.com/zfcampus/zf-apigility-admin/blob/master/src/Model/AbstractAutodiscoveryModel.php I need to know a priority for Apigility:
I think the right approach is to make Apigility SM3 compliant and start a new initiative after ZendCon to bring Apigility inline with today's practices. For zf-apigility-doctrine I've created a work around for the problem of DoctrineModule not supporting zend-hydrator and I'm ready to move the project forward. Without a consensus doing that work could lead to a dead end. |
This repository has been closed and moved to laminas-api-tools/api-tools-admin; a new issue has been opened at laminas-api-tools/api-tools-admin#25. |
With deprecation of ServiceLocatorAwareInterface following classes will raise deprecation warnings:
The text was updated successfully, but these errors were encountered: