avtonom/web-gate-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

avtonom/web-gate-bundle

Composer 安装命令:

composer require avtonom/web-gate-bundle

包简介

API for request and response to Rest and Soap

README 文档

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');

统计信息

  • 总下载量: 470
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-24