Yii Request Provider 1.0
2024-03-02
967次浏览
First stable release of yiisoft/request-provider was tagged.
The package provides current PSR-7 request as a dependency.
When you need current request, get RequestProviderInterface as dependency and obtain the request from it:
use \Yiisoft\RequestProvider\RequestProviderInterface;
final class MyService
{
public function __construct(
private readonly RequestProviderInterface $requestProvider
) {
}
public function doIt()
{
$request = $this->requestProvider->get();
// ...
}
}
新闻归档
热门标签
- yii3
- 扩展
- 发布
- yii2
- debug
- auth client
- view
- bootstrap
- release
- html
- redis
- apidoc
- Yii 2.0
- Yii 1.1
- mongodb
- mailer
- extensions
- twig
- gii
- queue
- runner
- http 客户端
- console
- validation
- cache
- sphinx
- widget
- hydrator
- translator
- symfonymailer
- db
- http
- log
- error handler
- config
- swiftmailer
- 图书
- imagine
- assets
- i18n
- IDE
- swagger
- elasticsearch
- router
- csrf
- smarty
- definitions
- logging
- fastroute
- user