eos/com-view-client-bundle

Symfony integration for eos/com-view-client

2.0.0 2019-07-22 20:11 UTC

This package is auto-updated.

Last update: 2024-10-24 00:18:45 UTC


README

The Symfony integration for enm/com-view-client.

Installation

composer require eos/com-view-client-bundle

Configuration

eos_com_view_client:
    clients: # the key, in this example "api", will be your client name
        api:
            base_uri: 'http://example.com/api' # the base uri used with this api client

Usage

To access individual clients you can call Eos\Bundle\ComView\Client\ComViewClientRegistryInterface::getClient($name) with$name like the configured key given in the configuration above.

Eos\Bundle\ComView\Client\ComViewClientRegistryInterface is available as service.

Each client is available as service with the individual id eos.com_view.client.CONFIGURED_NAME.

The first configured client will also be available as service Eos\ComView\Client\ComViewClient for autowiring.