avtonom / web-gate-bundle
API for request and response to Rest and Soap
Installs: 467
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- friendsofsymfony/rest-bundle: ~1.7|~2.1
- sensio/buzz-bundle: ~1.0
- symfony/dependency-injection: ~2.3|~3.0
- symfony/monolog-bundle: ~2.0|~3.0
README
API for request and response to Rest and Soap
To Install
php composer.phar require "avtonom/web-gate-bundle"
Add the bundle to app/AppKernel.php
$bundles( ... new Sensio\Bundle\BuzzBundle\SensioBuzzBundle(), new Avtonom\WebGateBundle\AvtonomWebGateBundle(), ...
Configuration options (parameters.yaml):
web_gate.soap.environment: dev web_gate.soap.connection_timeout: 15 web_gate.logger.logging_max_files: 0 web_gate.logger.logging_level: 100
Configuration services (services.yaml):
services: app.rest.client.get_user: class: Avtonom\WebGateBundle\Service\RestService arguments: - "@web_gate.logger" - "@buzz" - "GET" - "%web_gate.rest.host%" - "%web_gate.rest.env%/api/v1/user/" - "%web_gate.rest.login%" - "%web_gate.rest.password%"
Controller
$user = $this->get('app.rest.client.get_user')->send(['login' => 'test'], '/api/v1/user' . '/other_params');