【文件属性】:
文件名称:contentnegotiation-service-provider:内容协商服务提供商
文件大小:25KB
文件格式:ZIP
更新时间:2021-06-06 14:33:47
PHP
内容协商服务提供商
用于服务提供商。
安装
该软件包可在上 。 自动加载与兼容。
{
" require " : {
" dafiti/contentnegotiation-service-provider " : " dev-master "
}
}
用法
use Silex \ Application ;
use Dafiti \ Silex \ ContentNegotiationServiceProvider ;
$ config = [
'available_accepts' => [
'application/json' ,
'application/xml'
],
'default_accept' => 'application/json'
];
$ app = new
【文件预览】:
contentnegotiation-service-provider-master
----.gitignore(12B)
----src()
--------Exception()
--------Response()
--------Response.php(2KB)
--------ContentNegotiationServiceProvider.php(693B)
--------Listener()
----.travis.yml(438B)
----composer.json(740B)
----composer.lock(62KB)
----README.md(3KB)
----tests()
--------Exception()
--------Response()
--------bootstrap.php(68B)
--------Listener()
--------ContentNegotiationServiceProviderTest.php(1KB)
--------ResponseTest.php(868B)
----.scrutinizer.yml(380B)
----phpunit.xml.dist(678B)