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.)
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
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
$myService = $container
->get('itkg_consumer.manager.service')
->find('my_service_identifier');
## Todo
- Add tests
- Debug utilities
- WS profiling
- Improve doc
- Add more tests