php-http / message

HTTP Message related tools
http://php-http.org
MIT License
1.29k stars 41 forks source link

Package zendframework/zend-diactoros is abandoned #125

Closed PVGrad closed 3 years ago

PVGrad commented 4 years ago

Composer warns:

Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use laminas/laminas-diactoros instead.

See: https://www.zend.com/blog/what-status-zend-framework-transition-laminas

dbu commented 4 years ago

for BC reasons, i think we need to keep the zend factories and such for now.

if you want to contribute a laminas factory, please do. you could also mark the zend factory as deprecated.

driehle commented 3 years ago

@dbu You can safely migrate from zend/zend-diactoros to laminas/laminas-diactoros. Doing so will, as a dependency, automatically require the package laminas/laminas-zendframework-bridge. This package provides a mechanism which intercepts all class loading requests to legacy classes (Zend\ namespace), load the new class and create a class alias. See https://github.com/laminas/laminas-zendframework-bridge/blob/1.2.x/src/Autoloader.php#L112 for the actual implementation. Therefore, you won't have a BC break due to the migration. I'll provide a PR.

dbu commented 3 years ago

fixed in #134