eos / com-view-client-bundle
Symfony integration for eos/com-view-client
Installs: 90
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.2
- ext-json: *
- eos/com-view-client: ^2.0
- symfony/framework-bundle: ^4.0
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.