Skip to content

PSR-7 兼容 #4646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AlvisZhang opened this issue Mar 10, 2022 · 7 comments
Closed

PSR-7 兼容 #4646

AlvisZhang opened this issue Mar 10, 2022 · 7 comments

Comments

@AlvisZhang
Copy link

希望:
Swoole\Http\Request 兼容 Psr\Http\Message\ServerRequestInterface
Swoole\Http\Response 兼容 Psr\Http\Message\ResponseInterface

@sy-records
Copy link
Member

这个在PHP层就可以实现了

@AlvisZhang
Copy link
Author

这个在PHP层就可以实现了

这不是自己懒么,所以官方是没计划兼容 PSR 的了?

@sy-records
Copy link
Member

PHP已经有一些实现了的 composer 包了,可以直接使用。

更早也有提交需要支持的issue,例如#559,目前应该是没有计划。

@AlvisZhang
Copy link
Author

oic

@leocavalcante
Copy link
Member

也许我们可以在 Swoole 的 PHP 层,标准库中拥有这个:swoole/library#146

@AlvisZhang
Copy link
Author

也许我们可以在 Swoole 的 PHP 层,标准库中拥有这个:swoole/library#146

我看你的那个 pull request 已经好几个月都没合并到 master 了, WHY?

@leocavalcante
Copy link
Member

将此功能引入 Swoole 并开始实施一些 PSR 将是一项重大责任。 团队需要仔细检查。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants