itkg/consumer-bundle
最新稳定版本:v1.0.0
Composer 安装命令:
composer require itkg/consumer-bundle
包简介
WS consumer bundle
README 文档
README
WS Consumer Bundle on top
This bundle provide some utilities on top of itkg-consumer library
- Consumer Service definition
- Simple UI to configure Consumer services (proxy, authentication, action / desactivation, cache, etc.)
Installation
Installation by Composer
If you use composer, add ItkgConsumerBundle bundle as a dependency to the composer.json of your application
"require": { "itkg/consumer-bundle": "dev-master" },
- Add ItkgConsumerBundle to your application kernel.
// app/AppKernel.php <?php // ... public function registerBundles() { $bundles = array( // ... new Itkg\ConsumerBundle\ItkgConsumerBundle(), ); }
- Activate bundle config in application's config.yml file by addng :
itkg_consumer: ~
- Load routing in your routing.yml file
ItkgConsumerBundle: resource: "@ItkgConsumerBundle/Resources/config/routing.yml" prefix: /admin
Usage
Service definition example
rest_client: class: %itkg_consumer.client.rest.class% my_service: class: %itkg_consumer.service.class% arguments: - @event_dispatcher - @rest_client - { identifier: my_service_identifier } tags: - { name: itkg_consumer.service }
With specific "itkg_consumer.service" tag, service will be automatically loaded in service list UI
Getting service from container
$myService = $container ->get('itkg_consumer.manager.service') ->find('my_service_identifier');
## Todo
- Add tests
- Debug utilities
- WS profiling
- Improve doc
- Add more tests
统计信息
- 总下载量: 15.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-22