itkg / consumer-bundle
WS consumer bundle
Installs: 15 460
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 4
Open Issues: 1
Requires
- php: >=5.3.3
- doctrine/mongodb-odm: ~1
- doctrine/mongodb-odm-bundle: ~3
- itkg/consumer: dev-master
- symfony/proxy-manager-bridge: ~2
- symfony/symfony: ~2
Requires (Dev)
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2024-10-26 18:06:25 UTC
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