phpro / soap-client-sf2-bridge
A Symfony bridge for the phpro/soap-client package
Installs: 12 278
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 7
Forks: 5
Open Issues: 0
Requires
- php: >=7.0
- phpro/soap-client: ~0.2
- symfony/dependency-injection: ~2.8|~3.0
- symfony/event-dispatcher: ~2.8|~3.0
- symfony/http-kernel: ~2.8|~3.0
- symfony/stopwatch: ~2.8|~3.0
Requires (Dev)
- phpro/grumphp: ~0.5
- phpspec/phpspec: ~2.2
- phpunit/phpunit: 4.*
- squizlabs/php_codesniffer: ~2.3
This package is auto-updated.
Last update: 2020-12-27 13:08:34 UTC
README
Repository abandoned 2020-11-27
This repository has been archived since we are not using it anymore internally. Feel free to use it AS-IS, we won't be providing any support anymore.
SOAP Client Symfony Bridge
This package contains a Symfony Bridge for the soap-client.
The SOAP requests and responses will be logged in the profiler page.
A stopwatch is collecting information about runtime and memory usage.
This version is compatible with Symfony 3.2
Installation
$ composer require --dev phpro/soap-client-sf2-bridge
<?php // AppKernel.php if (in_array($this->getEnvironment(), array('dev', 'test'))) { $bundles[] = new Phpro\SoapClient\BridgeBundle\PhproSoapClientBridgeBundle(); }
Registering additional event dispatchers
The DataCollector listens to the default event dispatcher.
If you configured the soap-client to use another event dispatcher, you can mark it with the tag: phpro_soap_client.event_dispatcher
.
# services.yml services: app.event_dispatcher: class: Symfony\Component\EventDispatcher\EventDispatcher tags: - { name: phpro_soap_client.event_dispatcher }
Register dispatcher
Don't forget to register the EventDispatcher on your ClientBuilder as in the example below.
$clientBuilder->withEventDispatcher($dispatcher);