nfqde/soap-bundle
最新稳定版本:v0.0.2
Composer 安装命令:
composer require nfqde/soap-bundle
包简介
Symfony wrapper for SoapClient
README 文档
README
SoapBundle provides functionality for PHP SoapClient to be traceable by Symfony WebProfiler.
Features
- Requests are being logged in WebProfiler
- Event is being dispatched after SoapRequest
Installation
-
Add this bundle to your project as composer dependency
composer require nfqde/soap-bundle
-
Add this bundle in application kernel
// app/AppKernel.php public function registerBundles() { // ... $bundles[] = new Nfq\Bundle\SoapBundle\NfqSoapBundle(); return $bundles; }
Usage
Instead of creating SoapClient like new \SoapClient($wsdl, $optionalOptions)
you SHOULD create it via $container->get('nfq_soap.factory')->create($wsdl, $optionalOptions)
which returns an instance of SoapClient.
// Old way $oldSoapClient = new \SoapClient($wsdl); // New way $client = $container->get('nfq_soap.factory')->create($wsdl);
# Old Way services: old_soap_client: class: SoapClient arguments: ["%wsdl_url%"] # New Way services: new_soap_client: class: SoapClient factory: ["@nfq_soap.factory", create] arguments: ["%wsdl_url%"]
License
SoapBundle is licensed under the MIT License - see the LICENSE file for details
统计信息
- 总下载量: 24.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-10
